スクリプトの花嫁を使用して、Mac アプリを iTunes に接続しています。シャッフル プロパティを設定しようとしましたが、変更されません。
iTunesApplication *itunes = [SBApplication applicationWithBundleIdentifier:@"com.apple.itunes"];
itunes.currentPlaylist.shuffle = YES;
NSLog([NSString stringWithFormat:@"%hhd", itunes.currentPlaylist.shuffle]);
iTunesでシャッフルモードを手動で変更しても、NSLogは常に0を出力します。リピートモードの設定にも同じ問題があります
itunes.currentPlaylist.songRepeat = iTunesERptAll; // Has no effect
一方、音量は問題なく変更できます
itunes.soundVolume += 20;
何が起きてる?currentPlaylist プロパティを調べる必要があるのでしょうか?
編集: iTunes.hファイルを更新しました
sdef /Applications/iTunes.app | sdp -fh --basename iTunes
そしてまだ運がありません。