/
remoteStation.applescript
56 lines (45 loc) · 1.78 KB
/
remoteStation.applescript
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
-- @file: remoteStation.AppleScript
-- @author: Brendan Hogan
-- @version: 1.3.1
-- @update: 2018-07-05
-- Version history
-- ver. 1.3.1 : minor formatting adjustments
-- 2018-07-05
-- ver. 1.3.0 : update comment formatting; add header block for clarity
-- 2018-07-05
-- ver. 1.2.1 : update formatting for better EPPC definitions
-- This is the AppleScript version for the SENDING end (the remote engineer who sends messages TO front of house)
-- Note: eppc protocol is unstable on OS X 10.8
-- Configuration:
-- This applet requires "QDisplay" (https://github.com/Figure53/QDisplay) to be installed on the remote machine
-- eppc protocol addressing takes the form "eppc://username:password@IPaddress"
-- requires that the local (sending) user have administrative privileges over the remote (receiving) machine, and that
-- Remote Apple Events be enabled in System Preferences>Sharing.
set remoteMachine to "eppc://username:password@IPaddress"
-- update the above to username, password and IPaddress of remote (receiving) machine
-- do not use special characters '@' or ':' in password
display dialog "Message to FOH:" default answer "" buttons {"Cancel", "Send"} default button 2 with title "FOH Messaging"
set theMessage to the text returned of the result
try
using terms from application "QDisplay"
tell application "QDisplay" of machine remoteMachine
set message to "-- INCOMING --"
set messageSize to 80
set messageColor to "red"
delay 0.5
repeat 4 times
-- clear the message window
set message to ""
delay 0.5
-- set the warning message
set message to "-- INCOMING --"
delay 0.5
end repeat
-- clear the window
set message to ""
delay 0.5
-- display text entered in dialgo box
set message to theMessage
end tell
end using terms from
end try