Re: newbie: How do you copy files?
Re: newbie: How do you copy files?
- Subject: Re: newbie: How do you copy files?
- From: Cornwall <email@hidden>
- Date: Wed, 28 Aug 2002 13:17:23 -0700
At 11:13 AM -0700 8/28/02, Paul Berkowitz wrote:
>
It's changed in OS X. 'move' moves to disk not copies (even though dragging
>
in the UI still does a copy). I guess it deletes the original. Very handy,
>
since you can refer to it as the same alias after it's moved, which means
>
you don't have all those problems waiting fro the Finder to rename the copy
>
as you do in OS 9. (I had to use Akua or Jon's back in 9 whenever I wanted
>
to do this.) It works very well in X.
It changed back in OS 10.2. Now it copies without deleting original file.
set theNam to "testfil1"
set {filToMov, destFold} to {choose file, choose folder}
tell application "Finder"
move filToMov to destFold --copies to another disk (original not deleted)
set name of filToMov to theNam --oops original file renamed
end tell
This works correctly but still doesn't delete original file.
set theNam to "testfil1"
set filToMov to choose file
set destFold to choose folder
tell application "Finder"
set theMovdFil to move filToMov to destFold
set newAlis to theMovdFil as alias
set name of newAlis to theNam
open newAlis
end tell
Corny
_______________________________________________
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.