We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSyntax Questions › Applescript inside Processing
Page Index Toggle Pages: 1
Applescript inside Processing (Read 292 times)
Applescript inside Processing
Feb 7th, 2009, 8:39pm
 
What is the best way to get a variable from an Applescript script that I run in my Processing program into the actual program so I can use it?

More Specifically:
I want to get the bpm of a song in iTunes using Applescript and then send it to an Arduino.

Any help would be much appreciated.
Re: Applescript inside Processing
Reply #1 - Feb 11th, 2009, 5:49am
 
Great question.  I'm not sure about AppleScript, but there may be alternate means of getting that info from iTunes into Processing.  I've used ProXML to grab data from the iTunes library itself (which is just an XML file).  There's a thread that touches on that here:

http://processing.org/discourse/yabb_beta/YaBB.cgi?board=LibraryProblems;action=display;num=1197305807

Keep us updated as you make progress on this.
Page Index Toggle Pages: 1