• 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 01:52:34 +0100

On 2006-09-09, at 23:37:46, Jay Louvion wrote:

I am scripting Toast Titanium and ran into an out of memory error, which prompted me to save the script as an app. This script also uses 24u appearance osax for better dialogs. Switching to an app resolved my out of memory issue, but once the script is done, an error is returned stating “changes to this script could not be saved because of an OSA script error”.

Is there any way I could solve this or at least instruct the script to ignore the message, thus not displaying it ?

The whole thing is wrapped in a “try, on error display error”, but this happens once it has left the try, IMHO.

Jay,

I would first of all temporarily put the 24u osax calls out of the script. Secondly, if there's any way for you to get us the error number it might help.

try
	...
on error errs number errn
	display dialog errs & return & "Error: " & (errn as string)
end


Thirdly, try to run your script from Terminal: osascript /path/to/script


There might be an error print out.


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
  • Follow-Ups:
    • Re: OSA script error
      • From: Jay Louvion <email@hidden>
    • Disposition-Notification-To and Read-Receipt-To
      • From: Michael Ghilissen <email@hidden>
References: 
 >OSA script error (From: Jay Louvion <email@hidden>)

  • Prev by Date: OSA script error
  • Next by Date: Disposition-Notification-To and Read-Receipt-To
  • Previous by thread: OSA script error
  • Next by thread: Disposition-Notification-To and Read-Receipt-To
  • Index(es):
    • Date
    • Thread