Re: Mac OS X: AppleScript incorrectly decompiling tell blocks
Re: Mac OS X: AppleScript incorrectly decompiling tell blocks
- Subject: Re: Mac OS X: AppleScript incorrectly decompiling tell blocks
- From: Mark Alldritt <email@hidden>
- Date: Sun, 18 Nov 2001 19:59:23 -0800
on 18/11/2001 7:16 PM, Chris Nebel at email@hidden wrote:
>
Mark Alldritt wrote:
>
>
> I'm finding that Mac OS X is rewriting my tell blocks with I open scripts.
>
> Any script that contains:
>
>
>
> tell application "Script Debugger"
>
> -- blah blah...
>
> end tell
>
>
>
> Becomes
>
>
>
> tell application "AEServer"
>
> -- blah blah
>
> end tell
>
>
>
> Has anyone else run into problems like this. Is there a cure. I can't seem
>
> to understand what AppleScript is up to here.
>
>
This is (probably) a known bug in AppleScript 1.6 vs. program linking in Mac
>
OS
>
X 10.1. AEServer, which handles remote event routing on X, has no signature
>
and AppleScript 1.6 doesn't cope well with that, so if AEServer is running
>
(i.e., you have Allow Remote Apple Events turned on in X), all your scripts in
>
Classic, which has AppleScript 1.6, will decompile as 'tell application
>
"AEServer"'. The solution for now is to turn remote events off; the better
>
solution is to upgrade Classic to AppleScript 1.7 once it's available. (1.7b2
>
is available to ADC members now.)
>
>
That said, if you're seeing this not in Classic, then I don't know about the
>
problem, and you should send me some more details!
Classic is not part of my usage pattern. I am using Script Debugger 3.0.1
on 10.1.1 (i.e. Native Carbon app running on X). When I compile the above
snippet, save, close and then re-open the document, it decompiles as tell
app "AEServer".
So far, it seems to be limited to scripts written in Script Debugger that
target Script Debugger. To resolve the problem, I have to take the script
back to a 9.x machine, resave the script with the tell block fixed and
everything is OK until I make the mistake of opening the script on X.
I have not yet tried to rebuild my Launch Services database, but that's
probably going to be my next stop.
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