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

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

  • Follow-Ups:
    • Re: Getting Script Editor to save a new document without closing it?
      • From: Adam Bell <email@hidden>
    • Re: Getting Script Editor to save a new document without closing it?
      • From: Cameron Hayne <email@hidden>
  • Prev by Date: Setting default application to an app whose creator type is "????"
  • Next by Date: Re: Setting default application to an app whose creator type is "????"
  • Previous by thread: Re: Setting default application to an app whose creator type is "????"
  • Next by thread: Re: Getting Script Editor to save a new document without closing it?
  • Index(es):
    • Date
    • Thread