• 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: Getting Script Editor to save a new document without closing it?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting Script Editor to save a new document without closing it?


  • Subject: Re: Getting Script Editor to save a new document without closing it?
  • From: Cameron Hayne <email@hidden>
  • Date: Mon, 13 Nov 2006 19:57:55 -0500

On 13-Nov-06, at 3:06 PM, Brennan Young wrote:

I've also had difficulty
1) setting the text of a script in script editor

Try this:

on newScriptEditorDoc(scriptText)
    tell application "Script Editor"
        activate
        make new document
        set the text of the front document to (scriptText)
    end tell
end newScriptEditorDoc


-- Cameron Hayne email@hidden


_______________________________________________ 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/mailman//archives/applescript-users

This email sent to email@hidden
  • Follow-Ups:
    • Re: Getting Script Editor to save a new document without closing it?
      • From: Adam Bell <email@hidden>
References: 
 >Getting Script Editor to save a new document without closing it? (From: Brennan Young <email@hidden>)

  • Prev by Date: Re: Setting default application to an app whose creator type is "????"
  • Next by Date: Re: FileMaker 8 "create new record" again....
  • Previous by thread: Getting Script Editor to save a new document without closing it?
  • Next by thread: Re: Getting Script Editor to save a new document without closing it?
  • Index(es):
    • Date
    • Thread