Your best friend for file transfer.

Applescript & Watched folder (4 posts)
- Started 14 years ago by dburnham
- Latest reply 14 years ago from Jim Matthews
-
dburnham Member
-
Jim Matthews Administrator
That script should work. You need to edit it in order to tell it where the files should be uploaded; then you would attach it to a folder as a folder action.
The one problem that may happen with large files is that Fetch may start uploading a file that hasn't finished being uploaded to the folder with the folder action script. If that is a problem let me know -- I have a different script that may do the trick.
Thanks,
Jim Matthews
Fetch Softworks -
dburnham Member
Yes, jim, I would appreciate seeing a script that has a pause step in it. I'd like to have it wait about 2 minutes because one of my customers sends a 10mb file and I am pretty sure that the folder action won't wait for it to finish arriving unless there's a pause of some kind. Otherwise, yes, it works great.
Thanks,
Dennis -
Jim Matthews Administrator
You should be able to do that by adding the line:
delay 120
right before the "put into" line. That will have Fetch wait for two minutes before starting the upload.
Thanks,
Jim Matthews
Fetch Softworks
- Page 1
I have a situation in which some of my customers are unable to send their files by FTP to the server I designate for them, but they are able to send the files by FTP to an IP address I've given them to a machine on my network. That machine has no problem connecting to the machine that my customers are having trouble with. So until I am able to unravel what's causing it, I want to set up some automation to simple relay the files when they arrive.
I am familiar with using AppleScript and Folder Actions but I know how important it is for the script to be correct.
So I just want to know if the example script called "Upload Folder Action.scpt is the one I need to use. It looks so perfectly written as if I don't need to change a single word, so I just want to make sure it's not too good to be true! :-)
Posted 14 years ago #