Your best friend for file transfer.Fetch
Applescript - Auto Download to Specific Folder (3 posts)
- Started 6 years ago by zero12
- Latest reply 6 years ago from zero12
Looking for help on the use/edit of the AppleScript "WatchServerScript" that is part of the Fetch 5 example scripts available for download from this site. I need to specify a specific folder on my hard drive to put the downloaded files into. How can this be done and what would that part of the script look like? When I try to record the action using the Script Editor, it does not record the folder's location. I'm using Fetch 5.2 and Mac OS 10.3.9.
Scott McGuire Administrator
It looks like there's a bug in Fetch 5.2 that prevents the download folder from being recorded with Script Editor. Thanks for reporting that, we'll look into fixing it.
So to download to a specific folder, you should change this line of the "WatchServerScript" script:
download remote file aFileNameString
Change it to:
download remote file aFileNameString to alias "Macintosh HD:Users:username:watchresults"
Where you should replace the string after "alias" with a path to the folder where you want the files to be downloaded. "Macintosh HD" is the name of your hard drive, "username" is your username, and "watchresults" is the name of the folder you want them downloaded to.
Let us know if this doesn't work, or if you have further questions.
Thanks, Scott. That's exactly what I needed.
- Page 1