Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



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:
http://lists.apple.com/mailman/options/applescript-users/email@hidden
Archives: http://lists.apple.com/mailman//archives/applescript-users

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.