Your best friend for file transfer.

Fetch application logoFetch

AppleScripting problems (5 posts)

This is an archived topic. The information in it is likely to be out-of-date and no longer applicable to current versions of Fetch.
  • Started 11 years ago by MikeSuchcicki
  • Latest reply 11 years ago from MikeSuchcicki
  • MikeSuchcicki Member

    For our news publishing purposes, we were running an AppleScript that pulled news files from a remote server using Fetch 3.0.3 and stored them in a temporary local folder. The script used the "copy" command to copy the files from the remote directory.

    Recently we changed the local destination (we set up a new server), but when we changed the paths in the script, the copy command stopped working.

    Previous script line was:
    copy remote item fname to beginning of alias "WebMonsterServer Mirror Site :pns :pensacolanewsjournal:news:Today:Transfer"

    New script line is:
    copy remote item fname to beginning of alias "Server:Mirror Site :pensacolanewsjournal:news:Today:Transfer"

    (Note: Our previous local server was simply a Mac G4. On it, the directory " Mirror Site" led with a space. The new local server is Windows-based, so we do not have the leading space. I don't know if this has anything to do with the failure of the copy command, because the alias is set up in the same way.)

    Any help or suggestions are appreciated.

    [This message has been edited by MikeSuchcicki (edited 01-16-2003).]

    Posted 11 years ago #

  • Jim Matthews Administrator

    You might try pressing the Record button in the Script editor and dragging a file from Fetch to the desired destination folder in the Finder. That should show you the correct syntax for referring to the folder.

    Let me know if that does not work,

    Jim Matthews
    Fetch Softworks

    Posted 11 years ago #

  • MikeSuchcicki Member

    Jim, I followed your suggestion (feeling dumb that I forgot the Record function in the first place!) and recorded a typical pull down to the local folder. However, when I re-ran the resulting script, it produced an error message, "Fetch got an error: A descriptor type mismatch occurred." It happened on this line: copy remote item "ST001" to beginning of alias "Server:Mirror Site :pensacolanewsjournal:news:Today:Transfer:"

    [This message has been edited by MikeSuchcicki (edited 01-20-2003).]

    Posted 11 years ago #

  • Jim Matthews Administrator

    Have you tried this with Fetch 4.0.3? I wonder if you're running into one of the AppleScript bugs that was fixed for 4.0.3.

    Thanks,

    Jim Matthews
    Fetch Softworks

    Posted 11 years ago #

  • MikeSuchcicki Member

    That appears to be the case, Jim. I installed the new version and the scripts ran with no problem. Thanks for your help.

    Posted 11 years ago #

Topic closed

This topic has been closed.