How would I, using Applescript, wait for data to be POSTed to it, and when it is, trigger iTunes to pause / play. I’ve figured out the iTunes part; but how would I do the other part?
Thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I don’t believe you can use AppleScript as an HTTP handler, so I’m not sure you can do this. You might be able to use Remote Events as described here to send a message to the machine from another Mac, but how you would do that from a non-Mac machine I’m not certain. I’d suggest using another web server program and calling out to itunes from it using AppleScript rather than trying to use AppleScript to directly receive HTTP calls.