The Artima Developer Community
Sponsored Link

Agile Buzz Forum
iTunes from ObjectStudio

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
iTunes from ObjectStudio Posted: Nov 10, 2006 10:23 PM
Reply to this message Reply

This post originated from an RSS feed registered with Agile Buzz by James Robertson.
Original Post: iTunes from ObjectStudio
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

Having shown how to hit iTunes from VW, here's how I did the same thing in ObjectStudio. OST is more Windows oriented, so things were a bit simpler:


"Get a COM interface and a dispatch object"
ole := OLEObject newProgId: 'iTunes.Application'.
dispatcher := ole dispatcher.

"get the Playlist interface"
libPlay := dispatcher at: 'LibraryPlaylist'.

"Now add the file"
result := libPlay call: 'AddFile' params: (Array with: 'h:\audio\industry_misinterpretations_10-14-06.mp3').

Refer back to the same image from the previous post; it all worked the same way :) COM from Smalltalk isn't quite as hard as I thought it was.

Technorati Tags: , ,

Read: iTunes from ObjectStudio

Topic: Post OOPSLA Thougths Previous Topic   Next Topic Topic: I'm shocked, shocked...

Sponsored Links



Google
  Web Artima.com   

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