• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: replace folder upload rather than synchronisation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.
  • Prev by Date: Re: Shut Down Items
  • Next by Date: [ANN] iList 1.4b8
  • Previous by thread: replace folder upload rather than synchronisation
  • Next by thread: switching from applestalk to TCP/IP
  • Index(es):
    • Date
    • Thread