I am trying to use the Sudden Motion Sensor built-in to my Apple Powerbook G4 for a max patch by using AMSTracker and the shell 3rd party object in max/msp. So far, I have worked out how to open AMSTracker from within maxmsp using the shell object by sending the message: open "/Volumes/AMSTracker 0.31/amstracker" which opens in a new terminal window. The shell object uses perl commands to communicate with the terminal and I only came across this programming language yesterday and this patch has to be submitted for my degree very soon, hence I need some help stringing together code to do what I want this max patch to do.
I want this max patch to read data from AMSTracker in the terminal so I can use the X,Y and Z axis data to manipulate data and audio in maxmsp. If anyone can help me, no matter how much, I'd really appreciate it.