• 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
Copying files via applescript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Copying files via applescript


  • Subject: Copying files via applescript
  • From: Brian Dent <email@hidden>
  • Date: Wed, 09 Jun 2004 09:41:01 -0700

I am trying to make an applescript to copy all the files in a folder to a USB memory card. and if the file already exists on the card to keep which ever version is most current.

so far i have.
tell application "Finder"
activate
set labsFolder to folder "labs" of folder "JavaProgs" of folder "Documents" of folder "KushelDuv" of folder "Users" of startup disk
set destFolder to folder "labs" of folder "JavaProgs" of disk "LEXAR_MEDIA"

duplicate labsFolder to destFolder
end tell

but how do i get it to keep the most recent?

one other question this script runs fine but if i change both "labs" to "assignments" it opens up the little copying window, copies the files, but then says there was an error. and when i look at the memory card nothing was copied. any idea wutz happenin?
_______________________________________________
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.


  • Follow-Ups:
    • Re: Copying files via applescript
      • From: Graff <email@hidden>
  • Prev by Date: Re: Startup !
  • Next by Date: Re: Startup !
  • Previous by thread: Re: Startup !
  • Next by thread: Re: Copying files via applescript
  • Index(es):
    • Date
    • Thread