Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do I determine mime type of a local file?



Have you updated to 10.4.3?  This should not crash in that release.

jl

> I just wanted a quick test, if a file exists, but if I do something like:
> 
>     cmd = '[ test -f "/Volumes/DATA/test.txt" ]';
>     alert(cmd);
>     if (widget.system(cmd))
> 
> DashboardClient crashes.(see below)
> I tried several variations, but nothing worked.
> 
> What's the recommended way to see, if a file exists?
> 
> andy
> 
> 
> Thread 0 Crashed:
> 0   com.apple.Foundation               0x928db258
> _NSAddExceptionHandlerForLock + 176
> 1   com.apple.AppKit                   0x936811f8 _NSAppKitLock + 64
> 2   com.apple.AppKit                   0x936840f4
> -[NSApplication(NSWindowCache) _findWindowUsingCache:] + 84
> 3   com.apple.AppKit                   0x93681c74 _DPSNextEvent + 1264
> 4   com.apple.AppKit                   0x936815c8 -[NSApplication
> nextEventMatchingMask:untilDate:inMode:dequeue:] + 116
> 5   com.apple.AppKit                   0x9367db0c -[NSApplication run] + 472
> 6   com.apple.dashboard.client         0x0001045c 0x1000 + 62556
> 7   com.apple.dashboard.client         0x0000298c 0x1000 + 6540
> 8   com.apple.dashboard.client         0x00002830 0x1000 + 6192
> 
> 
>  _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Dashboard-dev mailing list      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/dashboard-dev/email@hidden
> 
> This email sent to email@hidden

--------------------------------------------------
John Louch         Internet #: email@hidden
(805) 541 2965


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Dashboard-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/dashboard-dev/email@hidden

This email sent to email@hidden

References: 
 >Re: How do I determine mime type of a local file? (From: Andy Fuchs <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.