Re: AppleScript 1.6 and Mac OS 8.6
Re: AppleScript 1.6 and Mac OS 8.6
- Subject: Re: AppleScript 1.6 and Mac OS 8.6
- From: Kai Edwards <email@hidden>
- Date: Mon, 18 Nov 2002 21:05:30 +0000
on Mon, 18 Nov 2002 09:29:15 +0000, Juergen May <email@hidden>
wrote:
>
>> The error raised is -1708 - ...application QuarkXPress doesn't
>
>> understand the <<event ScTIstdD>> message. This event code is Standard
>
>> Additions' choose folder command.
>
>
> That's not the case OMM. Here, the event code for 'choose folder' is <<event
>
> sysostfl>>, so I'm curious how 'choose folder' could be interpreted as
>
> <<event ScTIstdD>>. (I can't even get <<event ScTIstdD>> to compile here.
>
> Does it compile in a QuarkXPress tell block - and, if so, to what?)
>
>
Hmm... strange. Under OS 9.2.2 it compiles fine. Just to check, the event
>
code should be <<event ScTlstdD>> - that's a lower case L not a cap i after
>
the 'ScT'.
Yup. (I copied and pasted to be on the safe side.) :-)
>
Both my version and your version of the 'choose folder' event compile OMM,
>
both inside and outside of a QuarkXPress tell block.
I've now had a chance to test on OS 9.2.2/AS 1.8.3, Juerg. I get the same
results as I did on my other versions:
* <<event sysostfl>> compiles as 'choose folder'
* <<event ScTIstdD>> doesn't compile
...which supports Paul Berkowitz's suggestion that _something_ in your setup
must be translating the term 'choose folder' into <<event ScTIstdD>> -
before Standard Additions can convert it to <<event sysostfl>>.
>
> The error code -1708 [errAEEventNotHandled] means that the AppleEvent was
>
> not handled by any handler. In other words, the event could not be
>
> understood (and therefore handled) by the application, AS or any Scripting
>
> Additions.
>
>
Yeah, thanks, I found that code. It makes perfect sense.
Great.
>
> (BTW, the error code you mentioned earlier in this thread, -1762
>
> [errOSACantOpenComponent], meant that the script couldn't connect to
>
> scripting system with that ID.)
>
>
That's the code I _couldn't_ find. Where did you manage to get if from? I
>
checked Apple's site and it wasn't there!?
IIRC, the original data came from the <MacErrors.h> file on Chris Nebel's
iDisk:
http://homepage.mac.com/WebObjects/FileSharing.woa/wa/default?user=c.nebel&t
emplatefn=FileSharing.html
(Yes folks, Chris is still providing invaluable help - even if it's a little
more... 'oblique' right now!)
>
> I doubt it's a good idea to
>
> put the 'choose folder' command in an application tell block in the first
>
> place - even though it might work.
>
>
Um... yes, quite. That was a bit of a basic error wasn't it!
- and one which I'm sure many of us make from time to time! ;-)
>
I think my best plan is to amend the code, re-compile and send it to the
>
person who first reported the errors.
>
>
I'm still rather puzzled as to why there appear to be two event codes for
>
the 'choose folder' command though... Think I'll look into that one too...
Right now, I think Paul B's advice to test your Scripting Additions for
another OSAX containing 'choose folder' is probably your best bet.
Oh - while we're on the subject...
--------------------------------------
on Mon, 18 Nov 2002 07:35:56 -0800, Paul Berkowitz <email@hidden>
wrote:
>
You may have a very old osax in your Scripting Additions folder. Before
>
"Standard Additions" was created (OS 8.1? or 8.5) as a portmanteau set...
(snip: some excellent information and advice)
Thanks for that, Paul. As a side-note, I'm pretty sure it was in AS 1.3 (OS
8.5) that "Standard Additions" consolidated many previously separate
scripting additions. (I still have a couple of test machines knocking about
with AS 1.1.2 (OS 8.1), in which the scripting additions are still in
discrete modules: ["AGStart", "Beep", "Choose Application", "Choose File",
"Current Date", etc.])
HTH
Kai
--
email@hidden
email@hidden
_______________________________________________
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.