Getting Script Editor to save a new document without closing it?
Getting Script Editor to save a new document without closing it?
- Subject: Getting Script Editor to save a new document without closing it?
- From: Brennan Young <email@hidden>
- Date: Mon, 13 Nov 2006 20:06:52 +0000 (UTC)
What's going on here:
tell application "Script Editor"
activate
tell (make new document)
save it in (choose file name)
return its path
end tell
end tell
The document gets created, and saved, but Script Editor still thinks
it's called "Untitled X", and its path is not getting set. (Nothing is
returned from this script). 'Command-S' brings up the 'Save' dialog box
prompting me to choose a name, which is really not what I want to
happen.
This seems to be a bug.
Do I really have to close the document and open it again to work
around it?
I've also had difficulty
1) setting the text of a script in script editor.
2) saving a script 'as' something (.scpt, .app, .txt or whatever).
Seems fairly poor if 'Script Editor' has such flaky Scripting support.
What's the deal here? Have I missed something?
Brennan
_______________________________________________
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