Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Output Audio Device



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:
http://lists.apple.com/mailman/options/applescript-users/email@hidden
Archives: http://lists.apple.com/mailman//archives/applescript-users

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.