Re: replace folder upload rather than synchronisation
Re: replace folder upload rather than synchronisation
- Subject: Re: replace folder upload rather than synchronisation
- From: James Matthews <email@hidden>
- Date: Mon, 30 Jun 2003 14:34:21 -0400
i need it to delete the contents of the folder first, then upload the new
files. this does synchronisation rather than completely replace!!
can i amend this script, or would i be better off starting from fresh?
tell application "Fetch 3.0.3"
delete remote directory "f1"
put into url gDestURL item doc
-- quit
end tell
I would amend this to say:
tell application "Fetch 3.0.3"
open url gDesturl -- open a connection
try
delete remote item (name of (info for doc)) -- try to delete item
before upload
end try
put into url gDesturl item doc -- upload the dropped item
end tell
The "info for" is from standard additions on OS X 10.2.6; I'm not
sure what other OS releases it's available in.
--
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.