Re: applescript-users digest, Vol 3 #374 - 5 msgs
Re: applescript-users digest, Vol 3 #374 - 5 msgs
- Subject: Re: applescript-users digest, Vol 3 #374 - 5 msgs
- From: Mark Alldritt <email@hidden>
- Date: Mon, 22 Apr 2002 08:02:19 -0700
>
> I recently joined the happy community of Script Debugger users. In OS X,
>
> it's easy to make it my default script editor when I open up a compiled
>
> script, but what about those moments when an applet is running and things go
>
> wrong. An untrapped error puts up a dialog with an edit button that opens
>
> the applet in Script Editor if I click it. Is there a way to have the applet
>
> open in Script Debugger instead? (Without adding extra error-trapping code
>
> to my scripts, that is.)
>
>
>
> TIA
>
>
It doesn't mark-up the errors, but a workarround is:
>
- compress/delete Script Editor
>
- make-save an applet which will handle the open command:
>
>
on open this_file
>
tell app "Finder" to open this_file... -using your preferred app
>
end open
>
>
- set its creator type to "ToyS"
If you also forward the erng parameter to the open event, you'll get error
position information:
on open theFiles given +class erng;:errRange
tell application "Script Debugger" to open theFiles given +class
erng;:errRange
end open
Cheers
-Mark
---------------------------------------------------------------------
Mark Alldritt Late Night Software Ltd.
Phone: 250-380-1725 333 Moss Street
FAX: 250-383-3204 Victoria, B.C.
WEB:
http://www.latenightsw.com/ CANADA V8V-4M9
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.