Re: Output Audio Device
Re: Output Audio Device
- Subject: Re: Output Audio Device
- From: John M <email@hidden>
- Date: Wed, 1 Nov 2006 21:50:55 +0000
Hi Adam,
You could try this, which gives you system version of the sound device stored in your user's Preferences/byHost folder. I don't know where this is converted to the device name you see in System Preferences though.
--- set myMACAddr to do shell script "ifconfig en0 | awk '/ether/ { gsub(\":\", \"\"); print $2 }'" set myPath to POSIX path of ((path to preferences folder from user domain as text) & "byHost:.GlobalPreferences." & myMACAddr) do shell script "defaults read " & quoted form of myPath & " com.apple.audio.CoreAudio.DefaultOutputDevice.actual" ---
You could also investigateĀ com.apple.audio.DeviceSettings.plist in /Library/Preferences.
Best wishes |
_______________________________________________
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/mailman//archives/applescript-users
This email sent to email@hidden