• 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: Need Script To Copy User Folder to External Drive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Need Script To Copy User Folder to External Drive


  • Subject: Re: Need Script To Copy User Folder to External Drive
  • From: Joe <email@hidden>
  • Date: Tue, 14 Oct 2008 00:48:09 -0700

At 12:37 AM -0700 10/14/08, Joe wrote:
>At 10:05 PM -0500 10/13/08, Angela Gau wrote:
>>Does anyone have a script to copy the Documents Folder, Music Folder, Movie Folder to an external drive?
>
>set x to path to documents folder
>set y to path to music folder
>set z to path to movies folder
>tell application "Finder"
> duplicate x to "myExternalDrivesName"
> duplicate y to "myExternalDrivesName"
> duplicate z to "myExternalDrivesName"
>end tell

Which of course won't work without the magic word "alias" in front of the drives name.
(no I didn't test *this script   ;-)   )

--So instead use:
set x to path to documents folder
set y to path to music folder
set z to path to movies folder
tell application "Finder"
 duplicate x to alias "myExternalDrivesName"
 duplicate y to alias "myExternalDrivesName"
 duplicate z to alias "myExternalDrivesName"
end tell

apologies
Joe
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Prev by Date: Re: Need Script To Copy User Folder to External Drive
  • Next by Date: Re: Read for 1000 until nearest space?
  • Previous by thread: Re: Need Script To Copy User Folder to External Drive
  • Next by thread: Photoshop - positionning layers
  • Index(es):
    • Date
    • Thread