Re: Disappearing applescript
Re: Disappearing applescript
- Subject: Re: Disappearing applescript
- From: John W Baxter <email@hidden>
- Date: Mon, 8 Jan 2001 13:08:05 -0800
At 8:36 -0800 1/8/01, MoneyMan wrote:
>
I too am having trouble using Applescript lately. I'm using a beige
>
G3 w/ OS 9.04, OSA Menu 1.22 and Applescript 1.4 (automatically
>
updated by Software Update). My scripts aren't disappearing but I've
>
been having trouble running some URL Access scripts (for uploading to
>
ftp server), especially when launched by OSA Menu. I've been getting
>
error messages and sometimes my finder will crash. Also, I'm not sure
>
if it's related but I've noticed when I open some of my scripts in
>
Script Editor some of the syntax changes. Example:
>
>
tell application "BBEdit 6.0"
>
set the_list to ""
>
+event R*chGoto; 1
>
repeat while (find "<a href.*<br>" with +class Grep;)
>
set found_text to +class stxt; of window 1
>
set the_list to the_list & found_text & return
>
end repeat
>
>
Notice all the NEW syntax in double chevrons like +event R*chGoto;.
>
>
Do I have a bad version of Applescript or could it be some other
>
system component? Where can I get a new version of Applescript or URL
>
Access Scripting if they're bad or damaged?
It would appear that you don't have the same BBEdit version on the machine
as was used to compile the script when it didn't use the chevron notation.
The BBEdit you do have (else you would get other complaints) doesn't define
the class: R*ch code:Goto event, whereas clearly some version did. It's
not surprising they BBEdit use the R*ch event class: R*ch is the creator
code for BBEdit.
--John
--
John Baxter email@hidden Port Ludlow, WA, USA