Re: Getting Script Editor to save a new document without closing it?
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