• 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
Clicking iTunes 9 Genius button?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Clicking iTunes 9 Genius button?


  • Subject: Clicking iTunes 9 Genius button?
  • From: "David A. Cox" <email@hidden>
  • Date: Wed, 9 Sep 2009 15:38:28 -0700

This worked in iTunes 8 (if a song is playing in iTunes):

tell application "System Events"
tell process "iTunes"
keystroke "l" using command down --this draws focus to the active song
click (the first button of window "iTunes" whose help is "Start Genius.") --this clicks the genius button
keystroke "l" using command down --this draws focus to the now active genius playlist.
end tell
end tell


But this does not seem to work in iTunes 9, as all of the buttons have a missing value for their "help". I have not seen any other way to find the button with UI scripting (finding it by count does not always work as the number of buttons or layout may change). It would be better if there was direct way to start a genius playlist, but I have not seen that either.

Anyone have a way to do this?

DAC

_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
  • Follow-Ups:
    • Re: Clicking iTunes 9 Genius button?
      • From: "David A. Cox" <email@hidden>
  • Prev by Date: Re: [ANN] AppleScriptObjC sample
  • Next by Date: Re: SnowLep & FolderActions - Reposted
  • Previous by thread: Re: [ANN] AppleScriptObjC sample
  • Next by thread: Re: Clicking iTunes 9 Genius button?
  • Index(es):
    • Date
    • Thread