• 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
Re: How can I differentiate a jump drive folder from a HD folder of the same name?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How can I differentiate a jump drive folder from a HD folder of the same name?


  • Subject: Re: How can I differentiate a jump drive folder from a HD folder of the same name?
  • From: Jim Brandt <email@hidden>
  • Date: Fri, 10 Sep 2010 13:32:56 -0500


tell application "System Events"
ejectable of disk "the_disk:"
end tell

The internal HD will return false
The jumpdrive one will returtn true

Yvan KOENIG (VALLAURIS, France) vendredi 10 septembre 2010 16:22:03

Trying this, all ejectable properties came back as false:

tell application "System Events"
set diskList to every disk <== this list has two entries for HD1, HD2 and HD4, the 3 partitions of the jump drive. Nothing in
the list differentiates the HD from the jump drive
set maxDisks to count of diskList
repeat with d from 1 to maxDisks
set nm to name of item d of diskList as text
set dn to displayed name of item d of diskList as text
set ej to ejectable of item d of diskList as text
display dialog (d as text) & return & nm & return & dn & return & ej
end repeat
end tell

This was on a PowerPC running 10.4.11.

Disk "HD1" points to the HD, not to the jump drive. That's my point ... they both have the same name. I need to know how to be able to refer to them individually.

Jim Brandt

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: How can I differentiate a jump drive folder from a HD folder of the same name?
      • From: Bill Cheeseman <email@hidden>
    • Re: How can I differentiate a jump drive folder from a HD folder of the same name?
      • From: KOENIG Yvan <email@hidden>
  • Prev by Date: Re: How can I differentiate a jump drive folder from a HD folder of the same name?
  • Next by Date: Re: How can I differentiate a jump drive folder from a HD folder of the same name?
  • Previous by thread: Re: How can I differentiate a jump drive folder from a HD folder of the same name?
  • Next by thread: Re: How can I differentiate a jump drive folder from a HD folder of the same name?
  • Index(es):
    • Date
    • Thread