• 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
Re: iTunes Scripting Bridge examples?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: iTunes Scripting Bridge examples?


  • Subject: Re: iTunes Scripting Bridge examples?
  • From: has <email@hidden>
  • Date: Tue, 30 Dec 2008 16:53:17 +0000

Scott Anguish wrote:

Does anyone have any examples of using the Scripting Bridge with
iTunes?  Specifically how you get the currently selected tracks
returned as an array of iTunesTrack items.


FYI, appscript's ASTranslate tool is pretty good at converting application commands from AppleScript to ObjC syntax, e.g.:

	tell application "iTunes"
		selection
	end tell

produces:

	#import "ITGlue/ITGlue.h"
	ITApplication *itunes = [ITApplication applicationWithName: @"iTunes"];
	ITReference *ref = [itunes selection];
	id result = [ref getItem];

which you can then clean up or rewrite into whatever form you need. Won't help you with SB specifically, of course, but I think my views on SB are sufficently recorded by now.

If you need any specific help with iTunes' scripting interface, best ask on applescript-users or go have a rake through <http://dougscripts.com/itunes > for existing examples.

HTH

has
--
Control AppleScriptable applications from Python, Ruby and ObjC:
http://appscript.sourceforge.net

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: iTunes Scripting Bridge examples?
      • From: "Kyle Sluder" <email@hidden>
  • Prev by Date: Re: -[CKConnection connect]
  • Next by Date: Display Format Pop-up on Open Panel
  • Previous by thread: Re: iTunes Scripting Bridge examples?
  • Next by thread: Re: iTunes Scripting Bridge examples?
  • Index(es):
    • Date
    • Thread