I think your only option is UI Scripting. You will get or set their values using the "types" modeled after the menu item names as follows: Repeat types are "Off", "All", or "One".
Tags: Applescript Itunes Repeat Shuffle. Related [Apple] How do you put a variable in the middle of a pathway? Apple - How to start an application when a specific disk is mounted Apple - How to create an executable file for an AppleScript? Here is another approach: activate application "iTunes" tell application "System Events" tell process "iTunes" click menu item 1 of menu 1 of menu item "Shuffle" of menu 1 of menu bar item "Controls" of menu bar 1 end tell end tell.
It looks like many of these scripts are broken in the newest iTunes. Here are two the work: tell application "System Events" to tell UI element "iTunes" of list 1 of process "Dock" if not exists then return perform action "AXShowMenu" click menu item "Shuffle" of menu 1 end tell That one toggles shuffle via the Dock. You can watch the Dock menu animate when you use it. The latter script in your answer worked great for me on iTunes Christopher Camps Christopher Camps 1, 1 1 gold badge 9 9 silver badges 10 10 bronze badges.
Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Podcast Explaining the semiconductor shortage, and how it might end.
Does ES6 make JavaScript frameworks obsolete? Featured on Meta. Now live: A fully responsive profile. Linked 2. Related 5. Hot Network Questions.
Question feed. Stack Overflow works best with JavaScript enabled. There is a shuffle button right beside the playlist name at the top , when you have a playlist selected. In 10 it was easy to toggle back and forth between a shuffling playlist and a fixed playlist - something important if you need to use more than one playlist at the same time..
Sign up to join this community. The best answers are voted up and rise to the top. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Learn more. Can the function of the iTunes shuffle control be changed in iTunes 11?
Ask Question. Asked 8 years, 11 months ago. Active 8 years, 6 months ago. Viewed 8k times. So, can shuffle only affect a playlist and remain unset for general library play? Improve this question. I don't think it's possible.
0コメント