MACSCRPT Archives

June 2006

MACSCRPT@LISTSERV.DARTMOUTH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Brian Johnson <[log in to unmask]>
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Fri, 9 Jun 2006 12:57:34 -0700
Content-Type:
TEXT/PLAIN
Parts/Attachments:
TEXT/PLAIN (35 lines)
Update: On another 10.3.9 machine I do not get this error&crash. It must 
be due to a configuration difference. Odd.

   - B.Johnson

On Fri, 9 Jun 2006, Brian Johnson wrote:

>
> One of my Applescript CGIs has been producing odd results from time to time 
> and I think I just figured out why...
>
> If you run OS 10.3.9, try this script (all one line, modify the vol if..):
>
> tell application "Finder" to exists file "Macintosh 
> HD:Library:Webserver:Documents:cgi-bin:nope.html"
>
> (OMM this file does not exist, since there is no real 'cgi-bin' folder)
>
> When run in SE OMM the script causes SE to display a "Finder got an error: 
> Connection Invalid" and then the Finder crashes.
>
> Now try various path and file names (existing or not). Most will correctly 
> return false (or true) as appropriate, so long as the path doesn't imply the 
> existence of a "cgi-bin" folder within (an existing) "Documents" folder. 
> Those crash the Finder.
>
> On my 10.4.6 server this script properly returns false for the bogus file & 
> folder, so either this was a bug that got fixed, or something more subtle in 
> the configurations between these machines, but I thought it worth sharing.
>
>  - Brian Johnson, Dept of Architecture, University of Washington
>
>
>

ATOM RSS1 RSS2