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

  • Prev by Date: Re: Changing the name of a file in the temporary items folder
  • 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