Zachary Kotlarek 13 лет назад
Родитель
Сommit
e1451461c9
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      dmx/rifftrax.pl

+ 2 - 1
dmx/rifftrax.pl

@@ -501,5 +501,6 @@ sub parseConfig($$) {
 # The UDP listener would be more portable, but I already know how to do this
 # The PMS playback API would work too, but this script currently knows nothing of the PMS
 sub playPausePlex() {
-	Audio::runApplescript('tell application "System Events" to key code 49');
+	my @cmd = ('tell application "Plex" to activate', 'tell application "System Events" to key code 49');
+	Audio::runApplescript(join("\n", @cmd));
 }