Re: Need Script To Copy User Folder to External Drive
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