[bug?] System Events vs Finder - disk existence
[bug?] System Events vs Finder - disk existence
- Subject: [bug?] System Events vs Finder - disk existence
- From: Sander Tekelenburg <email@hidden>
- Date: Thu, 9 Dec 2004 10:29:19 +0100
Boot Mac OS X 10.3.6. Mount a remote volume (I used afp only but it may apply
to other schemes as well). Then unmount the disk by clicking the disk's eject
key in a Finder window. Then run this:
tell app "Finder"
exists disk "diskname"
end
-->false
tell app "System Events"
exists disk "diskname"
end
-->true
I'm guessing it may have something to do with the way the disk is unmounted.
Mac OS X seems to have several 'levels' of unmounting (I've found "hdiutil
eject" to be less definite then "umount"). Still, shouldn't System Events
return false?
I mean, even though the 'eject' form of 'unmounting' may still leave a
mountpoint (or something like that - I haven't looked too deep into it), for
all practical AppleScript purposes the disk is not available.
--
Sander Tekelenburg, <http://www.euronet.nl/~tekelenb/>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden