Re: renaming a folder
Re: renaming a folder
- Subject: Re: renaming a folder
- From: has <email@hidden>
- Date: Thu, 12 Jan 2006 14:18:33 +0000
Bob Cuilla wrote:
>Can someone tell me how to rename an existing folder?
Easy; here's a few examples:
tell application "Finder"
set name of folder "def" of folder "abc" of home to "xyz"
end tell
tell application "Finder"
set name of folder "Macintosh HD:users:me:abc:def" to "xyz"
end tell
set theFolder to choose folder
set newName to text returned of (display dialog "Enter name:" default answer "")
tell application "Finder" to set name of folder theFolder to newName
Understanding the principles behind it all is the hardest part, of course, but that's a longer discussion.
has
--
http://freespace.virgin.net/hamish.sanderson/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden