Your best friend for file transfer.

Fetch application logoFetch

Applescript - Auto Download to Specific Folder (3 posts)

  • Started 7 years ago by zero12
  • Latest reply 7 years ago from zero12
  • zero12 Member

    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.

    Posted 7 years ago #

  • Scott McGuire Administrator

    Hi,

    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 McGuire
    Fetch Softworks

    Posted 7 years ago #

  • zero12 Member

    Thanks, Scott. That's exactly what I needed.

    Posted 7 years ago #

Reply

  • Or nickname, if you prefer.
  • This will be kept confidential.
  • This is to ensure that you’re a person, not a spambot.