PDA

View Full Version : Control Equalizer iTunes


davidremoto
09-03-2010, 02:25 PM
Hello!

I have a PowerMate and I wont control the iTunes EQ with applescript but dont work for my

This is my script

tell application "iTunes"

set output_band1 to band 1 of (get band 1 setting)
set band 1 (output_band1 + 5)

end tell

This other script for volume control work fine

tell application "iTunes"
set output_vol to output volume of (get volume settings)
set volume output volume (output_vol + 10)
end tell

Thanks for the help!
Bye

NaOH
09-03-2010, 06:21 PM
I'm not a scripting expert, but it looks like your equalizer code is mimicking your volume code, and the equalizer requires a different format. I have equalizer codes that look something like this, so maybe seeing will help.


tell application "iTunes"
set the current EQ preset to EQ preset "Manual"
tell EQ preset "Manual"
set band 1 to -3
set band 2 to 0
set band 3 to 3
set band 4 to 1
set band 5 to 0
set band 6 to -1
set band 7 to 1
set band 8 to 3
set band 9 to 6
set band 10 to 5
set preamp to 0
end tell
end tell


You may also want to poke around at Doug's Applescripts for iTunes (http://dougscripts.com/itunes). There may be scripts there that provide you further examples of how to approach scripting the iTunes equalizer.

renaultssoftware
09-04-2010, 07:39 AM
I'm with NaOH there. That script looks like it'll work. Just make sure that it works with iTunes 10 (http://hints.macworld.com/article.php?story=20100903004553923).

NaOH
09-04-2010, 05:04 PM
The posted script works. I wouldn't have posted it if it didn't. Also, since the issue with failing Automator workflows and AppleScripts is tied to those which do an iTunes version check, there's no reason for a straightforward script like this to fail.