The Artima Developer Community
Sponsored Link

Agile Buzz Forum
Hitting iTunes from VisualWorks

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
James Robertson

Posts: 29924
Nickname: jarober61
Registered: Jun, 2003

David Buck, Smalltalker at large
Hitting iTunes from VisualWorks Posted: Nov 10, 2006 8:24 PM
Reply to this message Reply

This post originated from an RSS feed registered with Agile Buzz by James Robertson.
Original Post: Hitting iTunes from VisualWorks
Feed Title: Cincom Smalltalk Blog - Smalltalk with Rants
Feed URL: http://www.cincomsmalltalk.com/rssBlog/rssBlogView.xml
Feed Description: James Robertson comments on Cincom Smalltalk, the Smalltalk development community, and IT trends and issues in general.
Latest Agile Buzz Posts
Latest Agile Buzz Posts by James Robertson
Latest Posts From Cincom Smalltalk Blog - Smalltalk with Rants

Advertisement

I've been noodling around with the COM interface to iTunes, and - after some help from Troy and one of our engineers, I got things working - in both VW and OST. I got OST working first, but I have VW open now, so let's start with that. First, I used the type analyzer to get the GUID:


"View Dispatch interface methods and properties"
COMAutomationTypeAnalyzer describeID: 'iTunes.Application' asGUID.

Then, I grabbed the dispatch interface:


"Open an instance and try some methods."
driver := COMDispatchDriver createObject: 'iTunes.Application'.

Then, using the dispatch interface I grabbed the LibraryPlaylist interface and added a file:


"Get the Library playlist interface and add a file to iTunes"
playListLib := driver getProperty: 'LibraryPlaylist'.
playListLib invokeMethod: 'AddFile' with: 'h:\audio\industry_misinterpretations_10-14-06.mp3'.


Which led to this:

Next post- we'll have a look at the OST code.

Technorati Tags: , ,

Read: Hitting iTunes from VisualWorks

Topic: Windows, XBox, TV? Previous Topic   Next Topic Topic: Is there dawning rationality in the Bronx?

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use