• 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: Jay Louvion <email@hidden>
  • Date: Sun, 10 Sep 2006 13:25:35 +0200
  • Thread-topic: OSA script error

Title: Re: OSA script error
On 10.9.2006 2:52, "Philip Aker" <email@hidden> spake thus:

> 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
>
>
>

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

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.

I'm looking forward to your insight on the question.

Best regards,

j.

Jay Louvion
Studio Casagrande
3, rue Müller-Brun
1208 Geneva

T+4122 840 3272
F+4122 840 3271

skypeme:
jaylouvion

www.studiocasagrande.com


P Please consider the environment before printing this email.

 _______________________________________________
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: Philip Aker <email@hidden>
References: 
 >Re: OSA script error (From: Philip Aker <email@hidden>)

  • Prev by Date: Disposition-Notification-To and Read-Receipt-To
  • Next by Date: [Rép] Tiger sometimes fully expand a window: how do I resize it to be smaller ?
  • Previous by thread: Disposition-Notification-To and Read-Receipt-To
  • Next by thread: Re: OSA script error
  • Index(es):
    • Date
    • Thread