Script keeps crashing Filemaker Pro
Script keeps crashing Filemaker Pro
- Subject: Script keeps crashing Filemaker Pro
- From: email@hidden
- Date: Thu, 21 Nov 2002 18:01:37 EST
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
Any help would be greatly appreciated.
Thanks,
Andy D
_______________________________________________
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.