• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Changing the name of a file in the temporary items folder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Changing the name of a file in the temporary items folder
      • From: Michelle Steiner <email@hidden>
References: 
 >Re: Changing the name of a file in the temporary items folder (From: Paul Berkowitz <email@hidden>)
 >Re: Changing the name of a file in the temporary items folder (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Re: Finder inconsistency (Was: What makes AppleScript difficult)
  • Next by Date: Re: Finder inconsistency (Was: What makes AppleScript difficult)
  • Previous by thread: Re: Changing the name of a file in the temporary items folder
  • Next by thread: Re: Changing the name of a file in the temporary items folder
  • Index(es):
    • Date
    • Thread