replace folder upload rather than synchronisation
replace folder upload rather than synchronisation
- Subject: replace folder upload rather than synchronisation
- From: jake williamson <email@hidden>
- Date: Mon, 30 Jun 2003 15:22:26 +0100
hi!
i'm trying to amend one of the 'sample scripts' called 'DropUpload' included
with fetch 3.0.3 in os9.
it seems very simple in that it uploads folders/files to a web server using
fetch. the thing i'm trying to amend is the fact the script simply uploads
the files within a folder you drag onto it.
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?
cheers,
jake
p.s. this is a copy of the applescript:
property gDestURL : ""
on specify_destination()
set dialog_reply to display dialog "Enter Destination URL in format:" &
return & ,
"
ftp://[user[:password]@]host/path" & return & ,
"Where [...] is optional." default answer gDestURL
if button returned of dialog_reply = "OK" then
set gDestURL to text returned of dialog_reply
end if
end specify_destination
on open doc
if gDestURL = "" then
specify_destination()
end if
if gDestURL "" then
with timeout of 60000 seconds
tell application "Fetch 3.0.3"
delete remote directory "f1"
put into url gDestURL item doc
-- quit
end tell
end timeout
end if
end open
specify_destination()
_______________________________________________
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.