Yummy Software
Welcome, Guest. Please login or register.
March 31, 2008, 12:05:27 PM
2596 Posts in 487 Topics by 573 Members
Latest Member: noblejones
Home Help Search Login Register
Yummy Software  |  Yummy FTP  |  Yummy FTP Talk  |  How to get Applescript to upload to all bookmarks in a folder « previous next »
Pages: [1] Print
Author Topic: How to get Applescript to upload to all bookmarks in a folder  (Read 216 times)
emerald
Newbie
*
Posts: 1


View Profile
How to get Applescript to upload to all bookmarks in a folder
« on: December 23, 2007, 07:19:30 AM »

I would like to use Applescript to loop through all the bookmarks in one folder.   My goal is for all the bookmarks to have the most recent version of the same files

Something like this

For each bookmark in folder 'update group'
connect "bookmark"
   using connection "bookmark" list local folder "/Users/username/Sites/myfiles"
   using connection "bookmark" list remote folder "/public_html"
   using connection "bookmark" upload "files"
   using connection "bookmark" upload "includes"
   using connection "bookmark" upload "graphics"
   using connection "bookmark" upload "index.php"
   disconnect "bookmark"


Sorry I am new to Applescript and syntax is a tricky thing. 

Forgive me if this has been covered in a previous post.

Thanks

Doug Haynes
Logged
JD
Administrator
FTP Guru
*****
Posts: 1149


View Profile Email
Re: How to get Applescript to upload to all bookmarks in a folder
« Reply #1 on: December 28, 2007, 09:09:53 AM »

I think for a beginner, it's going to get complicated to do what you want - you'll need to ask the Finder to give you a list of all the Bookmarks in a particular folder, then reference them one by one.

I think a far simpler solution for you will be to keep a set of well named upload Bookmarks and then reference them directly, so you could simply have:

connect "UploadBookmark1"
using connection "UploadBookmark1" list local folder "/Users/username/Sites/myfiles"
using connection "UploadBookmark1" list remote folder "/public_html"
using connection "UploadBookmark1" upload "files"
using connection "UploadBookmark1" upload "includes"
using connection "UploadBookmark1" upload "graphics"
using connection "UploadBookmark1" upload "index.php"
disconnect "UploadBookmark1"

connect "UploadBookmark2"
using connection "UploadBookmark2" list local folder "/Users/username/Sites/myfiles"
using connection "UploadBookmark2" list remote folder "/public_html"
using connection "UploadBookmark2" upload "files"
using connection "UploadBookmark2" upload "includes"
using connection "UploadBookmark2" upload "graphics"
using connection "UploadBookmark2" upload "index.php"
disconnect "UploadBookmark2"

repeat as needed ... etc., etc.

Yummy will look through all your Bookmarks until it finds a matching name, so this will save you having to script the Finder to get information about folders and files.

For the Bookmarks, select 'Show All Bookmarks' from the Bookmarks menu which will show you all your Bookmarks. You can then use the facilities there to create / duplicate / edit / rename / delete Bookmarks.
Logged
Pages: [1] Print 
« previous next »
Jump to: