Re: Script keeps crashing Filemaker Pro
Re: Script keeps crashing Filemaker Pro
- Subject: Re: Script keeps crashing Filemaker Pro
- From: email@hidden
- Date: Fri, 22 Nov 2002 16:02:57 EST
I have ascertained that the computer which keeps crashing has Applescript
1.8.3 on it (I assume you're referring to the extension).
What I've been finding is that some scripts which work flawlessly and
consistantly on one computer (the firewire G3 laptop) which has OS 9.2.2 and
AS 1.8.3 , crashes on an iBook (G3 500 MHz) which has the exact same system
and AS version. Has anyone else encountered this kind of behavior? The script
also crashes an iMac which I have in the office.
Thanks for your help.
Andy D
>
I have an applescript which is nested in a Filemaker Pro script step (as a
>
"perform >applescript" command) which keeps crashing the program. It is
>
intended to check for >>the presence of a particular file and it's creation
>
date. On some macs, it seems to >work fine, but on others (all 9.2.2 by the
>
way) it either crashes or returns the error >"Can't make 'Macintosh HD:'
into
>
an item (Error -1700)" (where Macintosh HD is the >name of the startup disk)
>
It's worked fine for years, but now is creating problems on certain
>
computers.
>
Here is the script:
>
>
get path to startup disk
>
set p to result as string
>
>
set l to list folder p
>
set diskName to p as text
>
if l contains "Example File" then
>
set checkFile to diskName & "Desktop DT" as alias
>
set checkFileData to info for checkFile
>
set checkFileDate to creation date of checkFileData as text
>
if l contains "Example File" and checkFileDate is equal to "Sunday,
>
December 24, 1989 12:30:00 PM" then
>
set the clipboard to "Paste This"
>
else
>
set the clipboard to ""
>
end if
>
else
>
set the clipboard to ""
>
end if
>
Your script _should_ work, Andy. Sounds suspiciously like you might have AS
>
1.7 installed on the offending machine(s). This version contained rather
>
more than its fair share of bugs, mainly related to the parsing of file
paths.
>
If 1.7 is present, then it's worth considering a move either to AS 1.6
>
(Duncan Cowan has kindly confirmed that your script works there) or to AS
>
1.8.3.
_______________________________________________
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.