Your best friend for file transfer.

Fetch application logoFetch

CopyMove a File to Folder on FTP with Fetch 5.7.3 and Applescript Mac OS X 10.6.8 (3 posts)

  • Started 1 year ago by rwaters
  • Latest reply 1 year ago from rwaters
  • rwaters Member

    Hi,

    I need to move a file from one directory to another on our FTP site using Applescript. And can't seem to find the right syntax.

    Please help.

    Thanks,
    Robert

    Posted 1 year ago #

  • Jim Matthews Administrator

    Hi,

    I would try clicking the Record button in AppleScript Editor and then performing the move manually -- that should generate an example of the syntax to use. Let me know if that doesn't help.

    Thanks,

    Jim Matthews
    Fetch Softworks

    Posted 1 year ago #

  • rwaters Member

    Hi Jim,

    Thanks for the quick response!

    I found out that I need to "rename" the file to the location I want.
    To rename a remote file or remote folder:
    rename host "ftp.example.com" user "fred" password "secret" path "remotedir/filename" newname "/remotedir/NEWLOCATION/filename" (with sftp if needed)

    Works great now.

    Thanks again,
    Robert

    Posted 1 year ago #

Reply

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