• 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
Changing the name of a file in the temporary items folder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Changing the name of a file in the temporary items folder


  • Subject: Changing the name of a file in the temporary items folder
  • From: Michelle Steiner <email@hidden>
  • Date: Thu, 6 Dec 2007 19:09:53 -0700

When I run this script

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)
set name of temp to "new name." & name extension of temp
name of temp
end tell

Why doesn't it change the name of the file?

-- Michelle

--
There's no retirement plan for actvists


 _______________________________________________
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: Paul Berkowitz <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: Line Wrap - Fit to window
  • Next by thread: Re: Changing the name of a file in the temporary items folder
  • Index(es):
    • Date
    • Thread