• 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: newbie: How do you copy files?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: newbie: How do you copy files?
      • From: Philip Aker <email@hidden>
References: 
 >Re: newbie: How do you copy files? (From: Paul Berkowitz <email@hidden>)

  • Prev by Date: Re: Usage (was Re: OT: Re: New Address Book in Jaguar 10.2...)
  • Next by Date: Re: Usage (was Re: OT: Re: New Address Book in Jaguar 10.2...)
  • Previous by thread: Re: newbie: How do you copy files?
  • Next by thread: Re: newbie: How do you copy files?
  • Index(es):
    • Date
    • Thread