Re: 1 to 001 & the duplicate command
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.