Re: Script previously working has suddenly stopped!
Re: Script previously working has suddenly stopped!
- Subject: Re: Script previously working has suddenly stopped!
- From: Paul Berkowitz <email@hidden>
- Date: Fri, 04 Oct 2002 07:24:17 -0700
On 10/3/02 5:43 PM, "email@hidden" <email@hidden> wrote:
>
I'm hoping someone can help me with this: I have a long involved script that
>
was updated for OS 8.5, but continued to work right through 9.2.2 for many
>
months. All of a sudden, it crashes and returns either a type 1 or type 3
>
error. The script will then only work after restarting the Mac, and then,
>
only once. After that it returns the same error until another restart.
>
I believe at least one of the lines that is the problem is the following:
>
>
set sysPath to (path to system folder as string)
>
>
This always worked, but now just this line pasted into a script results in a
>
crash. Is there a new syntax which I have to use, and if so, why did the old
>
one function as long as it did?
The suggestions given to you so far
set sysPath to (path to system folder) as string
and the equivalent are coercions may work. Nevertheless the way you have it
originally is the way it's actually defined in Standard Additions, where 'as
string' is a parameter, not a coercion. That's the best method. There's no
good reason why it should be crashing.
The bad reason why it may be crashing is that if you recently upgraded to OS
9.2.2 and stopped there, you will have AppleScript 1.7, which is the worst
version of AppleScript ever released. You will have lots of other crashes
and freezes and slowdowns and "AppleEvent timed out" from the Finder, and so
on. The form you used is the form it it is supposed to have. AS 1.7 is very
unstable: the line above may have worked for a while and then stopped
working.
What you need to do is to upgrade AppleScript to 1.8.3, which is an
excellent version. You may be able to do it via Software Update. If it's not
available there, go to the Apple /Support / Downloads website. It's suddenly
got hard to find (it's disappeared from "Recent Downloads" and hasn't yet
made it to "Older Downloads"): you have to enter "AppleScript 1.8.3" in the
Knowledge Base Search. Make sure you get 1.8.3 for OS 9, not the one for OS
X.
--
Paul Berkowitz
_______________________________________________
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.