Your best friend for file transfer.

Fetch application logoFetch

How do I download a folder and subfolders using Applescript? (5 posts)

  • Started 2 years ago by Simon
  • Latest reply 2 years ago from Jim Matthews
  • Simon Member

    Just purchased fetch as it looks like it will do the job nicely for what I want.

    I can't for the life of me though find information on how to download all files/folders in a specified folder on my FTP server.

    Can someone point me to this? Thanks.

    Posted 2 years ago #

  • Jim Matthews Administrator

    Hi Simon,

    The easiest way to figure out AppleScript syntax for Fetch is to click the Record button in Script Editor, perform the task (in this case a download) manually, and then click Stop in Script Editor. Fetch will record an AppleScript for the actions you just took, which you can use as a template.

    The recorded script may name the downloaded items. To download every item instead you may want something like:

    download every remote item of transfer window "ftp.myftpserver.com"

    Please let me know if you run into any problems.

    Thanks,

    Jim Matthews

    Posted 2 years ago #

  • Simon Member

    The record script only tells me how to copy single files. That works.

    But : download every remote item of transfer window "ftp.myftpserver.com"

    Doesn't work.

    Error is:

    error "Fetch got an error: Can’t get every remote item of window (transfer window id 232280960)." number -1728 from every remote item of window (transfer window id 232280960)

    Posted 2 years ago #

  • Simon Member

    Solved it (two ways). In case anyone needs the solution it is mentioned on StackExchange.

    http://stackoverflow.com/questions/9325743/how-do-you-download-all-files-using-fetch-and-applescript

    Posted 2 years ago #

  • Jim Matthews Administrator

    Hi Simon,

    I posted another answer on StackOverflow, to explain why your original script did not work. AppleScript can be very finicky!

    Thanks,

    Jim Matthews
    Fetch Softworks

    Posted 2 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.