Finder file rename confusion
Finder file rename confusion
- Subject: Finder file rename confusion
- From: Dick Huskey <email@hidden>
- Date: Tue, 22 Feb 2005 03:40:57 -0500
Howdy,
My head must be dead.
I just want to rename a file (zx.0.txt)) that exists in a directory
~/zxdir or ~zxdir/zxdir to a new name (zx.1.txt)
tell application "Finder"
-- assumes:
-- 1) zx.0.txt exists in the folder ~/zxdir
set oldFileName to "zx.0.txt"
set newFileName to "zx.1.txt"
set the name of file oldFileName of folder "zxdir" of home to
newFileName
end tell -- finder
The event log returns:
set name of file "zx.0.txt" of folder "zxdir" of home to "zx.1.txt"
"Finder got an error: Can't set name of file \"zx.0.txt\" of folder
\"zxdir\" of home to \"zx.1.txt\"."
This works fine if the folder is home or desktop but not something
within those same directories.
why?
How do you figure this out?
Thanks
_______________________________________________
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