Dear all,
I have a question for which I have been googling a lot but I don't seem to find the correct answer. I am looking to automate a process in which I link an iTunes eq setting to the MAC address of the wireless network I am connected to. Concretely, I move my laptop a lot between several places. In Amsterdam the airport express is connected to a hifi installation that does not have an equalizer setting. What I would like is to create an apple script that activates the Amsterdam equalizer setting once I am connected to that network, and that deactivates that same setting once I am connected to another one. Through my googling activities I have tried to create such a script but I don't get it to work and I don't understand enough of applescript to correct it:
tell application "iTunes"
if airport MAC address is "00:23:6c:7f:31:f4" then
set the current EQ preset to EQ preset "amsterdam"
end if
if airport MAC address is not "00:23:6c:7f:31:f4" then
set the current EQ preset to EQ preset "Flat"
end if
end tell
Does anybody know what I am doing wrong? Thanks in advance...
Frenetic
I have a question for which I have been googling a lot but I don't seem to find the correct answer. I am looking to automate a process in which I link an iTunes eq setting to the MAC address of the wireless network I am connected to. Concretely, I move my laptop a lot between several places. In Amsterdam the airport express is connected to a hifi installation that does not have an equalizer setting. What I would like is to create an apple script that activates the Amsterdam equalizer setting once I am connected to that network, and that deactivates that same setting once I am connected to another one. Through my googling activities I have tried to create such a script but I don't get it to work and I don't understand enough of applescript to correct it:
tell application "iTunes"
if airport MAC address is "00:23:6c:7f:31:f4" then
set the current EQ preset to EQ preset "amsterdam"
end if
if airport MAC address is not "00:23:6c:7f:31:f4" then
set the current EQ preset to EQ preset "Flat"
end if
end tell
Does anybody know what I am doing wrong? Thanks in advance...
Frenetic