• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Output Audio Device
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: Output Audio Device (From: John M <email@hidden>)

  • Prev by Date: Re: Ejecting the tray on CD/DVD Drive
  • Next by Date: Re: Output Audio Device
  • Previous by thread: Re: Output Audio Device
  • Next by thread: Photoshop Open Composite Data
  • Index(es):
    • Date
    • Thread