Show script possibility

249 views
Skip to first unread message

Carl.

unread,
Apr 4, 2015, 9:20:59 AM4/4/15
to ql...@googlegroups.com
was showing a tech around Qlab yesterday. He mentioned that a great addition would be the facility to load in a physical copy of the show script into it and have qlab cues jump to that part of the script.

Is this likely to be possible. I guess it's a kind of Addition to the notes field.

Carl

micpool

unread,
Apr 4, 2015, 11:04:34 AM4/4/15
to ql...@googlegroups.com
Open a pdf of your script in QuickTime Player 7

Use this script


-- page number required must be the only thing in notes for this cue
tell front workspace
try
set thecue to last item of (active cues as list)
set thepage to the notes of thecue
set thepagetime to (thepage * 75) - 75
end try
end tell

tell application "QuickTime Player 7"
try
set current time of front document to thepagetime
end try
end tell

Workspace, demo video and screenshot attached

Mic
GoToPage screenshot.jpg
GO TO PAGE in pdf.mov
GO TO PAGE NUMBER.cues

Sam Kusnetz

unread,
Apr 4, 2015, 11:13:09 AM4/4/15
to ql...@googlegroups.com
I believe the only proper response to this is: hot damn, Mic.

Best
Sam

April 4, 2015 at 11:04 AM
Open a pdf of your script in QuickTime Player 7

Use this script


-- page number required must be the only thing in notes for this cue
tell front workspace
try
set thecue to last item of (active cues as list)
set thepage to the notes of thecue
set thepagetime to (thepage * 75) - 75
end try
end tell

tell application "QuickTime Player 7"
try
set current time of front document to thepagetime
end try
end tell

Workspace, demo video and screenshot attached

Mic


On Saturday, April 4, 2015 at 2:20:59 PM UTC+1, Carl. wrote:
--
--
Change your preferences or unsubscribe here:
http://groups.google.com/group/qlab
 
Follow Figure 53 on Twitter: http://twitter.com/Figure53

---
You received this message because you are subscribed to the Google Groups "QLab" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qlab+uns...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
April 4, 2015 at 9:20 AM
was showing a tech around Qlab yesterday. He mentioned that a great addition would be the facility to load in a physical copy of the show script into it and have qlab cues jump to that part of the script.

Is this likely to be possible. I guess it's a kind of Addition to the notes field.

Carl


--
Sam Kusnetz | Figure 53 Field Operative
s...@figure53.com

Steve Lalonde

unread,
Apr 4, 2015, 12:52:57 PM4/4/15
to ql...@googlegroups.com
+1

Carl.

unread,
Apr 5, 2015, 2:59:57 AM4/5/15
to ql...@googlegroups.com
I second Sam!

HOT DAMN!!!!

Mic you da man!

Carl.

unread,
Apr 5, 2015, 3:29:03 AM4/5/15
to ql...@googlegroups.com
Do you load this script into qLab direct? 

When i try opening either your attachment or cut and pasting your script into my existing workspace I'm getting an "ERROR: A property can't go after this identifier"

Carl



On Saturday, 4 April 2015 14:20:59 UTC+1, Carl. wrote:
Screen Shot 2015-04-05 at 08.28.26.png

micpool

unread,
Apr 5, 2015, 3:47:12 AM4/5/15
to ql...@googlegroups.com
That's odd

I've just tried it on 3 machines with 3 different operating systems and it' fine.

Do you mean if you open the example  .cues file I attached to the post it decompiles with the error straight away?

Mic

Carl.

unread,
Apr 5, 2015, 3:53:54 AM4/5/15
to ql...@googlegroups.com
Seems so,

This is what I get when trying to open your cue file directly.

Carl.



On Saturday, 4 April 2015 14:20:59 UTC+1, Carl. wrote:
Screen Shot 2015-04-05 at 08.51.54.png

micpool

unread,
Apr 5, 2015, 4:13:39 AM4/5/15
to ql...@googlegroups.com
The only way I can get that error is by changing the application j name of QuickTime Player 7

Can you open a pdf in Quicktime player.

Is the application name of Quicktime Player 7, as shown on the left of the menu bar,  on your machine exactly the same  as the application name in the script?

Mic

Carl.

unread,
Apr 5, 2015, 5:14:41 AM4/5/15
to ql...@googlegroups.com
Yep.

Can open the script in Quicktime Player 7. It also seems to be named correctly (see screenshot).

Im wondering if anything is blocked (script wise) on my mac here.

Carl.



On Saturday, 4 April 2015 14:20:59 UTC+1, Carl. wrote:
Screen Shot 2015-04-05 at 10.10.29.png

micpool

unread,
Apr 5, 2015, 6:17:50 AM4/5/15
to ql...@googlegroups.com
Curiouser and curioser,

Try this in applescript editor and you might get a clue as to what is happening


tell application "QuickTime Player 7"

set current time of front document to 750


end tell

micpool

unread,
Apr 5, 2015, 1:25:35 PM4/5/15
to ql...@googlegroups.com
Carl

I have now replicated your problem on a machine that has never had QuickTime Player 7 installed on it before.

To get it working i copied QuickTime Player 7 from it's default installation in applications/utilities to the normal applications folder.

It now works wherever QuickTime player is located.

Don't know why that sorted it.

let me know if it worked for you

Mic

micpool

unread,
Apr 5, 2015, 2:04:25 PM4/5/15
to ql...@googlegroups.com
And just to complete the thread.

Although the  current QuickTime Player will not open pdf's, if you open them in QuickTime Player 7 with a Pro License, you can save them as self contained  movies that will open in current QuickTime Player. (All pdf documents, in either version are 8fps movies, with each frame being a pdf image.)

However, 'current time' in applescript returns completely different values in each version, so to use it with current versions of QuickTime Player, the script becomes:

-- page number required must be the only thing in notes for this cue

tell front workspace
try
set thecue to last item of (active cues as list)
set thepage to the notes of thecue
set thepagetime to (thepage * 0.125) - 0.125
end try
end tell

tell application "QuickTime Player"
try
set current time of front document to thepagetime
end try
end tell


The ideal app for your requirements would be a full pdf editor with comprehensive scripting. I haven't found one, but if one existed you could do neat things like press a hotkey in QLab and have QLab insert the current cue number and name, with a yellow highlight, in the script, at the text cursor position.

Mic

Dave "luckydave" Memory

unread,
Apr 5, 2015, 3:33:00 PM4/5/15
to ql...@googlegroups.com

On Apr 5, 2015 11:04 AM, "micpool" <m...@micpool.com> wrote:

> The ideal app for your requirements would be a full pdf editor with comprehensive scripting. I haven't found one, but if one existed you could do neat things like press a hotkey in QLab and have QLab insert the current cue number and name, with a yellow highlight, in the script, at the text cursor position.

You're looking for Skim:

http://skim-app.sourceforge.net/

Chris Ashworth

unread,
Apr 6, 2015, 11:44:47 AM4/6/15
to micpool, ql...@googlegroups.com
Saw this thread over the weekend and wondered how hard it would be to hack together a little PDF viewer that responds to OSC commands.

Here is the result of perhaps about 45 minutes of work (plus more for making stupid Xcode compile some older code properly):


Direct download link here:


It’s as simple as it sounds, and don’t expect polish, but it’s a fun proof of concept.


Usage:

1. Drag a PDF on to the window to view it.
2. Send OSC messages to port 60000.  Use this format:

/goto/page/number


Might be useful?

-C

micpool

unread,
Apr 6, 2015, 11:59:28 AM4/6/15
to ql...@googlegroups.com, m...@micpool.com
Fantastic, but is there any reason it needs to be compiled for  OS 10.9 and above?

Mic

Chris Ashworth

unread,
Apr 6, 2015, 12:06:18 PM4/6/15
to ql...@googlegroups.com, m...@micpool.com
Ah, you know, I don’t think so. Just recompiled targeting 10.8 and updated the pre-built version. I haven’t tested it outside of 10.10, but, it… *should* work...

micpool

unread,
Apr 6, 2015, 12:45:53 PM4/6/15
to ql...@googlegroups.com, m...@micpool.com
Thanks, that build works fine in 10.8

Mic

micpool

unread,
Apr 6, 2015, 5:29:50 PM4/6/15
to ql...@googlegroups.com
On Sunday, April 5, 2015 at 8:33:00 PM UTC+1, luckydave wrote:

You're looking for Skim:

http://skim-app.sourceforge.net/

Thanks for the tip.

The page displayed in Skim can be controlled from Qlab  with:

tell application id "com.figure53.qlab.3" to tell front workspace
set thecue to last item of (active cues as list)
set thepage to notes of thecue as integer
end tell

tell application "Skim"
select first word of page thepage of front document
end tell

And you can put a box ready for a text note where you want to position a note for a cue and use something like this to type the q number, q name and "GO" into it using something like this on a hotkey.

tell application id "com.figure53.qlab.3" to tell front workspace
try
set thecue to last item of (selected as list)
set theqnumber to the q number of thecue
set theqname to the q name of thecue
set thetext to "Q" & theqnumber & " " & theqname & " GO"
end try
end tell
tell application "Skim"
activate
end tell

tell application "System Events"
keystroke thetext
end tell
tell application "QLab"
activate
end tell

Obviously, if you are going to be regularly having a pdf editor as the front application for adding notes, and therefore the focus for keyboard input, it's really important you have a MIDI or OSC remote for QLab control, as you can't rely on space etc. always being directed to QLab.

So lots of scope for controlling displaying and marking up scripts with Qlab control  with this and Chris's QView app.

And the QuickTime Player 7 method might sometimes be the best way, if you don't want to have a text editor open, but you want to automate the opening and closing of the text file from within Qlab. 

Mic

Pierre-Luc Brunet

unread,
Apr 6, 2015, 5:34:19 PM4/6/15
to ql...@googlegroups.com, m...@micpool.com
Works fine in 10.9.

Fun stuff! :)

Jeremy Lee

unread,
Apr 15, 2015, 10:11:32 AM4/15/15
to ql...@googlegroups.com
Wow. Amazing idea! I’ll check it out!  Is it possible for it to receive “next” and “previous” page commands as well?

-- 
-- 
Change your preferences or unsubscribe here: 
http://groups.google.com/group/qlab
 
Follow Figure 53 on Twitter: http://twitter.com/Figure53

--- 
You received this message because you are subscribed to the Google Groups "QLab" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qlab+uns...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
Jeremy Lee
    Sound Designer - USA 829



Reply all
Reply to author
Forward
0 new messages