Search the Community
Showing results for tags 'applescript'.
-
Folks, Here is a code that I wrote in order to : 1- set up the Digital Output audio of your Mac 2- Launch iTunes and select an equalizer 3- Advertize the user by a Crowl message Of course, it can be easily adapted to select the Analog Out, Headphone, etc... I hope it will be useful to some of you! Arnaud PS : it works under OS 10.6.7 ------------------------------------------------- tell application "System Preferences" activate set the current pane to pane id "com.apple.preference.sound" get the name of every anchor of pane id "com.apple.preference.sound" reveal anchor "output" of pane id "com.apple.preference.sound" end tell tell application "System Preferences" to activate tell application "System Events" get properties tell process "System Preferences" set theRows to every row of table 1 of scroll area 1 of ¬ tab group 1 of window "sound" set theOutputs to {} as list repeat with aRow in theRows if (value of text field 1 of aRow as text) ¬ is equal to "Digital Out" then set selected of aRow to true exit repeat end if end repeat end tell end tell tell application "System Preferences" to quit tell application "iTunes" set the current EQ preset to EQ preset "Pop" set theEqPresetName to name of the current EQ preset end tell tell application "GrowlHelperApp" set the allNotificationsList to ¬ {"EQ Preset Changed"} set the enabledNotificationsList to ¬ {item 1 of allNotificationsList} register as application ¬ "Toggle Equalizer Preset" all notifications allNotificationsList ¬ default notifications enabledNotificationsList ¬ icon of application "Script Editor" notify with name ¬ "EQ Preset Changed" title ¬ "iTune EQ Preset Changed to :" description ¬ theEqPresetName application name "Toggle Equalizer Preset" end tell
- 1 reply
-
- applescript
- itunes
-
(and 2 more)
Tagged with: