Controlling another app

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
anmldr
Posts: 459
Joined: Tue Sep 11, 2012 11:13 pm

Controlling another app

Post by anmldr » Fri Jul 17, 2015 2:31 pm

Can LiveCode be used to create an app that will manipulate other apps? For instance, can it create a Playlist in iTunes? If there is already a Playlist in iTunes, can a button play or pause songs in the Playlist? Can it delete songs in a Playlist, etc.? This is not the only app that I would like to "add" functionality to (or rather manipulate outside of the other app's capabilities. iTunes is only an example.

Linda

Klaus
Posts: 13829
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Controlling another app

Post by Klaus » Fri Jul 17, 2015 4:12 pm

Hi Linda,

not directly, but you can use AppleScript on the Mac and maybe VBScript on Windows.


Best

Klaus

sturgis
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1685
Joined: Sat Feb 28, 2009 11:49 pm

Re: Controlling another app

Post by sturgis » Sun Jul 19, 2015 8:48 pm

They're complex, but you might click "sample stacks" on the livecode bar, then search for itunes. There will be 2 stacks, one is from lazy river software (Thomas McGrath) its the itunes library suite. If I recall correctly, it controls itunes using vbscript on windows, and applescript on mac. I'm sure if you can dig in deep enough, there is much to learn from the stack. There is also remote control which is apparently linked to a "controlling itunes" lesson. The lesson (and another way to download the stack) can be found here: http://lessons.runrev.com/m/2592/l/1266 ... ing-itunes

MaxV
Posts: 1579
Joined: Tue May 28, 2013 2:20 pm
Location: Italy
Contact:

Re: Controlling another app

Post by MaxV » Mon Jul 20, 2015 3:14 pm

On Android and iOS you can comunicate between apps with URL schemes: https://translate.google.com/translate? ... e-app.html
Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”