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: Rename files?



Works over here. Some things to check:

a) Does the file exist?
b) Do you have permission to change its name?

What error are you getting?

Chris
----- Original Message -----
From: "Kevin Muldoon" <email@hidden>
Sent: Thursday, October 31, 2002 1:04 PM
Subject: Rename files?


> Why doesn't this code work anymore? How do we change the name of
> files/folders under OSX Jaguar?
>
> set p to "Scartaglen:Users:kmuldoon:Desktop:setsessionvar.php"
>
> tell application "Finder"
> set name of item p to "newname.txt"
> end tell
_______________________________________________
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.



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.