Re: Cloaking Device
Re: Cloaking Device
- Subject: Re: Cloaking Device
- From: Stan Cleveland <email@hidden>
- Date: Thu, 07 Jul 2011 16:28:26 -0700
On Jul 7, 2011, at 8:30 AM, Luther Fuller wrote:
> <snip>
>
> I've Googled this and found nothing. Does anyone know how to get only the volumes on a particular hardware device? Or get a list of hardware devices?
Hi Luther,
In addition to Ron's suggestion of the 'diskutil' command, the 'system_profiler' shell command might get you where you want to go. Of course, 'man system_profiler' in Terminal is a good place to begin.
For starters:
do shell script "system_profiler -listDataTypes"
The above command will give a list all the subsystems of your Mac for which you can get more detail. Specify one of them like this:
do shell script "system_profiler SPFireWireDataType" -- returns a string
do shell script "system_profiler -xml SPFireWireDataType" -- returns XML
The output of either command will require parsing, but XML would be the simplest, IMO. There's a lot of information to be harvested from there.
HTH,
Stan C.
_______________________________________________
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