Re: Changing the name of a file in the temporary items folder
Re: Changing the name of a file in the temporary items folder
- Subject: Re: Changing the name of a file in the temporary items folder
- From: Michelle Steiner <email@hidden>
- Date: Thu, 6 Dec 2007 21:44:14 -0700
On Dec 6, 2007, at 9:36 PM, Paul Berkowitz wrote:
Try this:
set source to (choose file)
set destination to choose folder
tell application "Finder"
set temp to (duplicate source to path to temporary items from user
domain) as alias
set name of temp to "new name." & name extension of temp
name of temp
end tell
Still doesn't change the name. If I move it to a folder visible in
the Finder, though, it changes the name.
Mac OS X 10.5.1
-- Michelle
--
"Other than telling us how to live, think, marry, pray, vote, invest,
educate our children and, now, die, I think the Republicans have done
a fine job of getting government out of our personal lives."
--Craig Carter
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden