Explorar o código

More moves to OpenPHT

Zachary Kotlarek %!s(int64=10) %!d(string=hai) anos
pai
achega
e03f8ee9db
Modificáronse 2 ficheiros con 6 adicións e 6 borrados
  1. 4 4
      dmx/qt_player.pl
  2. 2 2
      dmx/rifftrax.pl

+ 4 - 4
dmx/qt_player.pl

@@ -136,8 +136,8 @@ sub init() {
 	# Always load and play the SILENCE file (for sanity and general init)
 	# Always load and play the SILENCE file (for sanity and general init)
 	load('SILENCE', 'DMX/Silence.wav');
 	load('SILENCE', 'DMX/Silence.wav');
 
 
-	# Bring Plex back to the front
-	cmdApp('Plex', 'activate');
+	# Bring OpenPHT back to the front
+	cmdApp('OpenPHT', 'activate');
 }
 }
 
 
 # Open the named file and record the handle
 # Open the named file and record the handle
@@ -199,8 +199,8 @@ sub load($$) {
 	$FILES{$name} = $doc;
 	$FILES{$name} = $doc;
 	printFiles();
 	printFiles();
 
 
-	# Bring Plex back to the front
-	cmdApp('Plex', 'activate');
+	# Bring OpenPHT back to the front
+	cmdApp('OpenPHT', 'activate');
 }
 }
 
 
 # Close the named file
 # Close the named file

+ 2 - 2
dmx/rifftrax.pl

@@ -515,13 +515,13 @@ sub parseConfig($) {
 # The UDP listener would be more portable, but I already know how to do this
 # 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
 # The PMS playback API would work too, but this script currently knows nothing of the PMS
 sub playPausePlex() {
 sub playPausePlex() {
-	my @cmd = ('tell application "Plex" to activate', 'tell application "System Events" to key code 49');
+	my @cmd = ('tell application "OpenPHT" to activate', 'tell application "System Events" to key code 49');
 	Audio::runApplescript(join("\n", @cmd));
 	Audio::runApplescript(join("\n", @cmd));
 }
 }
 
 
 # Send a noop keycode to Plex to fend off the screen saver
 # Send a noop keycode to Plex to fend off the screen saver
 sub ticklePlex() {
 sub ticklePlex() {
-	my @cmd = ('tell application "Plex" to activate', 'tell application "System Events" to key code 1');
+	my @cmd = ('tell application "OpenPHT" to activate', 'tell application "System Events" to key code 1');
 	Audio::runApplescript(join("\n", @cmd));
 	Audio::runApplescript(join("\n", @cmd));
 }
 }