Thread-topic: How do I determine mime type of a local file?
User-agent: Microsoft-Entourage/11.2.1.051004
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