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: Luther Fuller <email@hidden>
- Date: Fri, 7 Dec 2007 07:49:11 -0600
On Dec 6, 2007, at 10:44 PM, Michelle Steiner wrote:
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.
I just posted a 'remove' handler to another thread. Notice the last
line ...
tell application "Finder" to update item itemName of itemCont
I added this line due to a similar problem. My guess is that using
'update' after the name change will fix the problem.
_______________________________________________
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