• 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: 1 to 001 & the duplicate command
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 1 to 001 & the duplicate command


  • Subject: Re: 1 to 001 & the duplicate command
  • From: Stephen Swift <email@hidden>
  • Date: Sat, 01 Jun 2002 11:02:13 -0400

At 5/30/02 8:27 PM, Timothy Bates (email@hidden) Wrote:

>> tell application "Finder"
>> set blah_folder to container of blah
>> set blah_duplicate to duplicate blah to blah_folder without replacing
>> end tell
>> blah_duplicate
>> --> file "sign-on list" of application "Finder"
>
>> I was expecting to see
>> file "sign-on list copy" of application "Finder" as the result.
>
> You were: if you get the path to your new file you will see it is the
> duplicate, but the Finder did not need to add "copy" as you made it in a
> distinct folder, so it let the name alone for you.

Unfortunately, no. I checked the ID's of the original file and
blah_duplicate -- they are the same number. And when the Finder did indeed
duplicate the file the new name was "sign-on list copy".
>
> Now just do
> set name of blah_dup to "new name"

Changes the name of the original file. Thanks for the info about the 1 to
001 though.

Stephen Swift
email@hidden
-----------------------------------------------
AppleScript Guru - The Mac Observer
http://www.macobserver.com/tips/applescript
_______________________________________________
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.

  • Prev by Date: Re: Comparing strings
  • Next by Date: Re: 1 to 001 & the duplicate command
  • Previous by thread: Re: Comparing strings
  • Next by thread: Re: 1 to 001 & the duplicate command
  • Index(es):
    • Date
    • Thread