Question

I see there is a property shuffle but it doesn't seem to do anything (it still plays shuffled).

I tried this but it plays shuffled. I'd like it unshuffled. Is this not possible?

            iTunesPlaylist *p;

            for (iTunesSource *source in [iTunes sources]) {
                if ([source kind] == iTunesESrcLibrary) {
                    p = [[source userPlaylists] objectWithName:playlist];
                    break;
                }
            }

            if (p != nil) {
                p.shuffle = NO;
                [p playOnce:NO];
            }
Était-ce utile?

La solution

A bug in iTunes 11 breaks the AppleScript (and hence Scripting Bridge) Shuffle command.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top