Re: Output Audio Device
Re: Output Audio Device
- Subject: Re: Output Audio Device
- From: Adam Bell <email@hidden>
- Date: Wed, 01 Nov 2006 18:51:50 -0400
Title: Re: Output Audio Device
At 9:50 PM +0000 11/1/06, John M wrote:
Thanks, John; Unfortunately, the code (in my case,
Apple03DBDMAAudio:i2s-a:0) doesn't change when output devices do, so
it must just be a reference to the board itself.
Regards;
Adam
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
John Maisey
_______________________________________________
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