• 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: Re : Renaming file bug
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Re : Renaming file bug


  • Subject: Re: Re : Renaming file bug
  • From: Roger Howard <email@hidden>
  • Date: Mon, 13 Dec 2004 11:51:12 -0800


On Dec 13, 2004, at 1:15 AM, JM wrote:

tell application "Finder"
set ThisFile to make new file in ThisFolder
-- later
set the name of ThisFile to ThisName
end tell

JM, why not just do the following:

tell application "Finder"
set ThisFile to make new file in ThisFolder with properties (name:ThisName}
end

That way you avoid having to rename at all - just set the name from the start.

Hope this helps,

Roger
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Quit Classic
      • From: JM <email@hidden>
References: 
 >Fwd: Re : Renaming file bug (From: JM <email@hidden>)

  • Prev by Date: Re: Another way to open files? (Droplet script with Canon Canoscan Toolbox)
  • Next by Date: Brad D Gourley/US/DNY is out of the office.
  • Previous by thread: Fwd: Re : Renaming file bug
  • Next by thread: Quit Classic
  • Index(es):
    • Date
    • Thread