• 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: OSA script error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: OSA script error


  • Subject: Re: OSA script error
  • From: Philip Aker <email@hidden>
  • Date: Sun, 10 Sep 2006 16:05:01 +0100

On 2006-09-10, at 12:25:35, Jay Louvion wrote:

The exact error message is as follows: "Could not save changes to the script because of a scripting system (OSA) error. -2707"

Hello Jay,

This is what the MacErrors.h file says about that:

errOSAInternalTableOverflow = -2707, /* Signaled when a runtime internal data structure overflows*/

I have never encountered it so I can only speculate that that it would come from a situation where a record, a list, or an AppleScript dictionary was involved and that it was being pumped to more than its capacity or supplied with bad values. Assuming that you have eliminated the 24u osax calls, then the best person to ask about how it could occur would be an AppleScript engineer. If you're absolutely sure it's not of your own doing (i.e. the Toast script worked on a previous system), then file a bug at <https://bugreport.apple.com/>. I'm not familiar with scripting Toast but I'm sure lots of folks have done it so there should be some remarks to be found by a Google search or even a specialized list.


I obviously cannot run the script through the Terminal because the script requires a dialog and osascript in the Terminal (to my knowledge) does not allow user interaction.

To get a dialog from osascript you have to tell some application to display it. Otherwise the dialog will show behind the Terminal window and won't be accessible except to kill it by typing Control-c. So just wrap your dialogs with something like:


set dtext to "I'm a sneaky Terminal dialog"
set pnam to ""
tell application "System Events"
	set plist to name of every application process whose frontmost is true
	set pnam to item 1 of plist
	activate
	display dialog dtext with icon caution
end tell
tell application pnam to activate
return "sneaky"


Philip Aker 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: This email sent to email@hidden
References: 
 >Re: OSA script error (From: Jay Louvion <email@hidden>)

  • Prev by Date: Re: OSA script error
  • Next by Date: Re: OSA script error
  • Previous by thread: Re: OSA script error
  • Next by thread: Re: OSA script error
  • Index(es):
    • Date
    • Thread