yea we have used apple script but the signal is not revived to turn the play list on that we have created in iTunes but the hot keys work but we were wondering if we need a middle program to translate the signal from arduino to the apple script? ill post you are code cause we can't get it to work :s if were doing it right

const int BUTTON = 7;
const int LED = 13;
int val = 0; //variable to store the state of the button
int old_val = 0; //stores the previous value of "val"
int state = 0; // 0 = BUTTON off while 1 = BUTTON on
unsigned long startTime = 0; // when did we begin pressing?
const byte ANIMATION = 3;
char* names[ANIMATION] = {
"ctrl A","ctrl B","ctrl C"
};
void setup()
{
pinMode(BUTTON,INPUT); //BUTTON is an input
Serial.begin(9600); //open the serial port to send data back to the computer
//at 9600 bits per second
}
void loop()
{
val = digitalRead(BUTTON); //read input value from the button
//check if there was a transition
if (val == HIGH) { //if we buzz the wire
Serial.println (names[random(0,ANIMATION)]);
digitalWrite (LED, HIGH);
delay (1000);
}
if (val == LOW ) { //if nothing happens
Serial.println ("Normal state");
digitalWrite ( LED, LOW);
}
}
here is the apple script for one of the hot keys
tell application "iTunes"
tell (track 1 of playlist "test") to play
end tell
thank you again
