Extract iTunes Art in VB

zryip theSlug zryip.theslug at gmail.com
Wed Dec 14 17:38:11 EST 2016


Dan,

I never tried to get an album cover from iTunes in VB.

All I know is how to have the VB script returning a value in LiveCode,
by using the variable "result".

Try:

Function getAlbumArt()
  Dim tAlbumArt
  tAlbumArt = ""
  result = cStr(iTunesApp.CurrentTrack.Artwork)
End Function


Best Regards,

On Tue, Dec 13, 2016 at 5:36 PM, Dan Friedman <dan at clearvisiontech.com> wrote:
> Using the “Controlling iTunes” lesson (http://lessons.livecode.com/m/2592/l/126614-controlling-itunes <http://lessons.livecode.com/m/2592/l/126614-controlling-itunes>), I am able to query iTunes and do everything I want.  On the Mac side, I was able to modify the appleScript to extract the album cover art for the currently playing song.  But, I’m having a heck of a time doing this for Windows (VB).  I added this:
>
> Function getAlbumArt()
>   Dim tAlbumArt
>   tAlbumArt = ""
>   getAlbumArt = cStr(iTunesApp.CurrentTrack.Artwork)
> End Function
>
> But, I don’t get anything back.
>
> I’ve been fiddling with this for to long now!  Anyone know how to get the album cover art for the currently playing song in VB?
>
> -Dan
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode



-- 
Zryip TheSlug
http://www.aslugontheroad.com




More information about the use-livecode mailing list