Re: Watched Folders
Re: Watched Folders
- Subject: Re: Watched Folders
- From: James Matthews <email@hidden>
- Date: Wed, 23 Jul 2003 09:38:40 -0400
This folder action script works for me, even if I drag new files into
the folder while a previously-dragged file is being uploaded:
on adding folder items to this_folder after receiving these_items
try
tell application "Fetch 4.0.3"
with timeout of 60000 seconds
put into url
"
ftp://userid:@hostname/path/" item these_items
end timeout
end tell
on error errorMsg
display dialog "There was an error trying to put " &
(these_items as string) & ": " & errorMsg
end try
end adding folder items to
The try/on error/end try is useful for debugging, since otherwise
errors aren't reported.
--
Jim Matthews
Fetch Softworks
http://fetchsoftworks.com
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.