Driver listing

Hi Folks,

a simply Yes or No Question:

Is it possible to list all the used drivers in a system enviroment with applescript?

Thanks for your answers…

Stefan

HI Folks,

the following is putting the HW Information into a file on the desktop:


do shell script "/usr/sbin/system_profiler > " & POSIX path of (path to desktop as text) & tName & ".profile.txt"

I have seen in System Profiler that on Contents Software / Extensions all Drivers are listed… Has
anybody a clue how to handle this with applescript?

Thanks for your help!

Stefan

You are handling it with an AppleScript. Do you mean to extract the relevant data from the return?

If you mean without a shell script, then the System Profiler is scriptable (but much slower).

Hi Stefan,

this gives you a list of the paths of all extensions:

do shell script "system_profiler SPExtensionsDataType | awk '/ Location: / {print $2}'"

Hi Adam,

of course you are right - I am using applescript - I want to script SystemProfiler but I am not able to work with the dictionary…

To Stefan:

thanks for your tipp - I will try to work with it…

Stefan

This is slow, but it does get a list of your kext file data:

tell application "System Profiler" to set SP to system profile
set tid to AppleScript's text item delimiters
set AppleScript's text item delimiters to "Extensions:"
set E to text item 2 of SP
set AppleScript's text item delimiters to "Fonts:"
set K to text item 1 of E
set AppleScript's text item delimiters to tid

They’re all kept in /System/Library/Extensions/, but that includes lots of kexts that are not device drivers.