• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
good ways of communicating info from AS with non-scriptable apps?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

good ways of communicating info from AS with non-scriptable apps?


  • Subject: good ways of communicating info from AS with non-scriptable apps?
  • From: Alastair Leith <email@hidden>
  • Date: Sun, 02 Aug 2015 19:58:24 +0800

I’m looking for a good way to share small blobs of info from iTunes about the current song and play-head position (and maybe next-song if not in shuffle mode) with a Quartz Composer composition/app that will be a Visualiser. There’s a stock way to bring limited info into QC from iTunes but it’s unreliable (on my system at least) and doesn’t pass all the info i need. Going in the other direction, I may want to flip iTune’s shuffle mode on/off from the composition/app and communicate that to iTunes.

The ‘easiest’ way I can think of is just writing an XML to disk with AS to somewhere like /usr/bin/visualiser/. Quartz Composer (QC) has text and XML file importer patches and I can prompt once a second to check the file for changes and parse the data I need.

Other ways of sharing info with QC using stock patches and 3rd party patches which are in-memory are OSC, MIDI, WebSocket and Network patches for broadcasting and receiving. I will probably need two-way comms but nothing fancy. MIDI won’t do it but all the others can transmit structured text objects.

Are there any ways I could investigate for maybe AS invoking a shell command to get info back and forth on OSC or some kind of IP/web-socket methods?

Best
Alastair

Alastair I Leith
Useful  Design

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: good ways of communicating info from AS with non-scriptable apps?
      • From: Shane Stanley <email@hidden>
  • Prev by Date: Re: iTunes 12 "Up Next" GUI Element not accessible with AS
  • Next by Date: Re: iTunes 12 "Up Next" GUI Element not accessible with AS
  • Previous by thread: Re: Yosemite and activate failures
  • Next by thread: Re: good ways of communicating info from AS with non-scriptable apps?
  • Index(es):
    • Date
    • Thread