Page 1 of 1

Give Applescript a file list?

Posted: Mon Apr 14, 2008 2:59 am
by buzzwig
I've been trying to get Cyberduck to pass a list of file names in a browser window to Applescript so I can control which files the script will download, but I can't get Cyberduck to give it to me. Anyone know how?

Re: Give Applescript a file list?

Posted: Mon Apr 14, 2008 10:26 am
by dzr
Hi there,
I think you're looking for something like:

set theFiles to (browse folder (get working folder))
repeat with theFile in theFiles
*do stuff like download theFile here*
end repeat

Hope this helps!

Re: Give Applescript a file list?

Posted: Wed Apr 16, 2008 10:29 am
by buzzwig
Yes, that was it! I am stumbling my way through a fairly complex Applescript project with somewhat elementary knowledge. Thanks for your help!