Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: applescript-users digest, Vol 3 #1017 - 14 msgs



At 3:03 PM -0600 10/31/02, Kevin Muldoon wrote:

Why, in the name of God, does this code NOT work? How are we supposed
to rename items in OSX Jaguar?

set p to "MacHD:Users:theusername:Desktop:setsessionvar.php"

tell application "Finder"
set name of item p to "the new name"
end tell

It works for me on a folder (tested with OS X 10.2.1). Is your target file in use?

--

Rob Jorgensen
Ohio, USA
_______________________________________________
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.

References: 
 >Re: applescript-users digest, Vol 3 #1017 - 14 msgs (From: Kevin Muldoon <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.