Re: OSA script error
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