I've tried everything I could find for getting permission to send AppleScripts to iTunes from my screensaver;
-Added NSAppleEventsUsageDescription string to info.plist.
-Added this to info.plist:
<key>com.apple.security.temporary-exception.scripting-targets</key>
<dict>
<key>com.apple.iTunes</key>
<array>
<string>com.apple.iTunes.playback</string>
</array>
</dict>
</plist>
-Asked if I had permission:
NSAppleEventDescriptor* targetAppEventDescriptor = [NSAppleEventDescriptor descriptorWithBundleIdentifier:@"com.apple.iTunes"];
OSStatus status = AEDeterminePermissionToAutomateTarget(targetAppEventDescriptor.aeDesc, typeWildCard, typeWildCard, true);
Which returns errAEEventNotPermitted (-1743).
Is there any way to configure my screensaver to work around the stupid security stuff that continually gets in developers' way?