• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
[bug?] System Events vs Finder - disk existence
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[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

  • Prev by Date: Re: Subtract 1 month from date
  • Next by Date: Re: R é p : Scripting Wireless Connectivity
  • Previous by thread: Re: R é p : Scripting Wireless Connectivity
  • Next by thread: Dictionary of app "System Events"
  • Index(es):
    • Date
    • Thread