Re: replace folder upload rather than synchronisation
Re: replace folder upload rather than synchronisation
- Subject: Re: replace folder upload rather than synchronisation
- From: jake williamson <email@hidden>
- Date: Tue, 01 Jul 2003 10:59:04 +0100
hi james,
thanks for getting back to me (from the fetchsoftworks.com site no less!).
i've gone back in and tried it and all seems cool. changed it slightly to
just read:
open url gDesturl -- open a connection
try
delete remote directory "folderNameHere" -- try to delete item
before upload
end try
put into url gDesturl item doc -- upload the dropped item
end tell
so it deletes the directory first, then re-uploads the one i dragged and
dropped on the script.
works really well!
cheers,
jake
On 30/6/03 9:44 pm, "jake williamson" <email@hidden> wrote:
>
----- Begin forwarded message -----
>
From: James Matthews <email@hidden>
>
Date: Mon, 30 Jun 2003 14:34:21 -0400
>
To: email@hidden
>
Cc: jake williamson <email@hidden>
>
Subject: Re: replace folder upload rather than synchronisation
>
>
> 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.
_______________________________________________
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.