Live text input with applescript?

403 views
Skip to first unread message

Erik Rietman

unread,
Jul 27, 2015, 7:13:23 AM7/27/15
to QLab
Hi group,

Is there a possibility to enter live text into a title cue while Qlab is running? I'm thinking about triggering an applescript cue which opens a popup which then asks for the text to show. The script has to put this text input into a specific title cue which then can be triggered.

The reason for this is that I don't want the Qlab operator go into a complex cue (which fires several other cues like audio and video) and make the adjustments there. Or maybe there is another and better approach?

Anyone any experience with this? Or has any examples? Your help will be appreciated..:-)

Regards,
Erik

micpool

unread,
Jul 27, 2015, 10:23:54 AM7/27/15
to QLab, er...@kirentis.nl
tell application id "com.figure53.qlab.3" to tell front workspace
try
display dialog "Type Text to Display" default answer "Title Text"
set thetitle to text returned of result
set the text of cue "TITLE" to thetitle
start cue "TITLE"
on error
return
end try
end tell



Mic

micpool

unread,
Jul 27, 2015, 10:25:35 AM7/27/15
to QLab, er...@kirentis.nl, m...@micpool.com
Obviously you need a cue numbered TITLE for this to work, and you would put this script in a script cue.

Erik Rietman

unread,
Jul 27, 2015, 3:22:19 PM7/27/15
to QLab
Thnx Mic! I'll try this with our next show!

Aurel Jahnke

unread,
Nov 13, 2015, 8:54:23 AM11/13/15
to QLab, er...@kirentis.nl, m...@micpool.com
This isn't quite working for me. Script part works fine an it prompts the input field. But after that it jumps to a text cue called TITLE and nothing happens.
any thoughts ?

cheers

A

Craig K

unread,
Nov 13, 2015, 12:05:04 PM11/13/15
to QLab, er...@kirentis.nl, m...@micpool.com
Did you name the cue "TITLE"? you need to set the cue number to "TITLE". Then it should work. (works here)

Again, another elegant solution from Mic - Very nice.

Craig K.

Aurel Jahnke

unread,
Nov 13, 2015, 12:51:11 PM11/13/15
to QLab
There's your problem. - Thanks now it works like a charm :)

Aurel Jahnke

unread,
Nov 13, 2015, 1:02:03 PM11/13/15
to QLab
Have one little follow-up so.

1) with long texts the won't break into multiple lines. Text just runs off screen. How do i get this fixed so it breaks in more lines.

Chris Ashworth

unread,
Nov 13, 2015, 1:31:00 PM11/13/15
to Aurel Jahnke, ql...@googlegroups.com
Hi Aurel,

You can specify a specific width (in pixels) using the “width” text field in the inspector:

Aurel Jahnke

unread,
Nov 13, 2015, 3:16:58 PM11/13/15
to QLab
Thanks again, this helped me a lot and now i can input text on an infoscreen and keep it updated if needed.

thanks guys, great community!


On Monday, July 27, 2015 at 1:13:23 PM UTC+2, Erik Rietman wrote:
Reply all
Reply to author
Forward
0 new messages