Your best friend for file transfer.

Fetch application logoFetch

automate uploads (10 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 9 years ago by Guest
  • Latest reply 9 years ago from Jim Matthews
  • Guest Member

    need to schedule daily uploads

    AppleScript?

    Anyone have a good script?

    Posted 9 years ago #

  • Jim Matthews Administrator

    I would recommend doing the upload manually after clicking the Record button in the Script Editor -- that will generate a script that may work for you, or at least serve as a starting point.

    Jim Matthews
    Fetch Softworks

    Posted 9 years ago #

  • Guest Member

    yup

    did that

    gets hung when Fetch expects a click on "okay"

    I'm a newbie to Applescript: how do I script it to choose "okay"?

    I did try "return" with no luck

    Posted 9 years ago #

  • Jim Matthews Administrator

    What window is Fetch putting up that expects a click? If it's the New Connection window you can uncheck "Show New Connection dialog at startup" in the Misc. section of Preferences to keep that from happening.

    Thanks,

    Jim Matthews
    Fetch Softworks

    Posted 9 years ago #

  • Guest Member

    cool

    thanks

    that works

    now, however, I get ad error "-1409"

    here's the script (I am trying to upload a folder)

    store alias "G5:testFolder" url "ftp://user:password@mysite.com/testFolder"

    what is error 1409?

    Originally posted by JimMatthews:

    What window is Fetch putting up that expects a click? If it's the New Connection window you can uncheck "Show New Connection dialog at startup" in the Misc. section of Preferences to keep that from happening.

    Thanks,

    Jim Matthews
    Fetch Softworks

    Posted 9 years ago #

  • Jim Matthews Administrator

    I think that 1409 means you found a bug; I'll see about getting it fixed. In the meantime try

    duplicate alias "G5:testFolder" to url "ftp://user :password@mysite.com/"

    Thanks,

    Jim Matthews
    Fetch Softworks

    Posted 9 years ago #

  • Guest Member

    thanks

    but when I try that, Fetch sticks a colon after the "G5:testFolder"

    ??

    Originally posted by JimMatthews:

    I think that 1409 means you found a bug; I'll see about getting it fixed. In the meantime try

    duplicate alias "G5:testFolder" to url "ftp://user :password@mysite.com/"

    Thanks,

    Jim Matthews
    Fetch Softworks

    Posted 9 years ago #

  • Jim Matthews Administrator

    It's AppleScript that puts the colon there; that indicates that testFolder is a folder.

    Thanks,

    Jim Matthews
    Fetch Softworks

    Posted 9 years ago #

  • jcfsr Member

    I too would like to know how to use applescript to upload a file each night. I have applescript working as far as opening, filling in my info for upload, and going to the proper directory on my upload server. However, I cannot figure out how to tell it to attach the file and upload it.

    Any help would be greatly appreciated.

    Thank you

    Posted 9 years ago #

  • Jim Matthews Administrator

    You can tell Fetch to upload a file (or folder) with the statement:

    duplicate alias "Hard disk:folder:filename" to url "ftp://user:password@mysite.com/path/"

    You want to replace "Hard disk:folder:filename" with the path to the file or folder you want to upload, starting with the name of the folder. You want to replace "ftp://user:password@mysite.com/path/" with the URL of the folder on the server where you want to upload to go; you can connect to that server and use the Copy command in the Edit menu in Fetch to get the URL.

    Please let me know if you have any trouble,

    Jim Matthews
    Fetch Softworks

    [This message has been edited by JimMatthews (edited 11-16-2004).]

    Posted 9 years ago #

Topic closed

This topic has been closed.