As an alternative solution, you can use AppleScript and a PDF reader that accept ActionScript command. This is the case for Skim. The commands accepted by Skim are described here: https://sourceforge.net/p/skim-app/wiki/AppleScript/.
Create a script using “Script Editor.app” with the following lines and save it in your ‘Downloads’ directory under the name ‘gotoskim.scpt’ :
on run argv
set pageNum to (item 1 of argv) as integer
tell application "Skim"
set view settings of document 1 to {display mode:single page}
tell document 1 to go to page pageNum
end tell
end run
Then if you have an Antescofo score as below:
$scorefile := "/Users/USER/Downloads/score.pdf"
$script := "/Users/USER/Downloads/gotoskim.scpt"
_ := @system("open -a skim " + $scorefile)
NOTE C4 5
_ := @system("osascript " + $script + " " + 10)
NOTE C2 5
_ := @system("osascript " + $script + " " + 20)
NOTE D4 5
_ := @system("osascript " + $script + " " + 30)
print end
assuming that you replace USER by your actual user name in the score, then the execution will open the ‘score.pdf’ file and changes the page in the Skim viewer as the events occur.
The function @system() executes a shell command:
-
The first one before the first musical event launch skim (and assume that the Skim.app is installed on your computer).
-
The following commands launches the Apple Script that interacts with Skim to change the current page. The page to set is specified by the number in the @system() argument.The expression simply built the string to pass to the function @system (the + operators concatenates strings and convert its subsequent arguments into string if needed).
For additional commands , take a look at the Skim wiki.
Obviously, this is done on the same machine, but it is possible to launch remotely an Apple Script. There is an example here but it exceeds by far my knowledge of AppleScript and Remote Desktop.