QLab 5 · macOS · AppleScript

QLab +
aplicaciones externas

PowerPoint, Chrome, Zoom y PDF, dentro de tu cuelist. Sin cambiar de aplicación, sin perder el foco del show.

P
PowerPoint Microsoft 365 · Mac
AppleScript
-- PPT_SHOW
-- Abre un .pptx en modo presentación en el monitor externo.
-- QLab permanece operativo en el monitor principal.
-- El ponente avanza con su clicker directamente.
--
-- Requisitos:
--   · Microsoft PowerPoint para Mac (Microsoft 365)
--   · En PowerPoint → Presentación → Configurar presentación:
--     selecciona el monitor externo antes del show y guarda el archivo
--   · Permiso de Accesibilidad en
--     Sistema → Privacidad y Seguridad → Accesibilidad
--
-- *** EDITA LA RUTA AL ARCHIVO AQUÍ ***
property rutaArchivo : "/Users/TU_USUARIO/Desktop/NOMBRE_PRESENTACION.pptx"

-- Paso 1: abrir el archivo sin robar el foco a QLab
do shell script "open -g -a 'Microsoft PowerPoint' " & quoted form of rutaArchivo

-- Paso 2: esperar a que el archivo cargue completamente
-- Si la presentación es pesada, aumenta este valor
delay 3

-- Paso 3: activar PowerPoint brevemente para enviar el atajo
tell application "Microsoft PowerPoint" to activate
delay 0.5

-- Paso 4: Shift+Cmd+Return lanza el slideshow siguiendo
-- la configuración de Presenter View y el monitor asignado
tell application "System Events"
    tell process "Microsoft PowerPoint"
        keystroke return using {shift down, command down}
    end tell
end tell

-- Paso 5: devolver el foco a QLab
delay 0.5
tell application id "com.figure53.QLab.5" to activate
AppleScript
-- PPT_CLOSE
-- Detiene el slideshow y cierra la presentación sin guardar.
-- Usar al terminar la ponencia.

tell application "Microsoft PowerPoint"
    try
        tell (slide show window of active presentation) to stop
        delay 0.3
        close active presentation saving no
    on error
        -- Si ya estaba cerrado, no hacer nada
    end try
end tell
Google Chrome Chrome 124+
AppleScript
-- CHROME_SHOW
-- Mueve la ventana de Chrome al monitor externo y la expande
-- a pantalla completa sin robar el foco a QLab.
--
-- Requisitos:
--   · Google Chrome abierto en la página deseada
--   · Permiso de Accesibilidad en
--     Sistema → Privacidad y Seguridad → Accesibilidad
--
-- *** EDITA LAS COORDENADAS DE TU MONITOR EXTERNO ***
-- origen_x: ancho en píxeles del monitor principal
-- origen_y: dejar en 0
-- ancho y alto: resolución del monitor externo
property origen_x : 1920
property origen_y : 0
property ancho : 1920
property alto : 1080

tell application "System Events"
    tell process "Google Chrome"
        set position of window 1 to {origen_x, origen_y}
        set size of window 1 to {ancho, alto}
    end tell
end tell
AppleScript
-- CHROME_HIDE
-- Retira Chrome del monitor externo sin cerrar el navegador.
-- La ventana queda aparcada en el monitor principal detrás de QLab.
-- Al volver a ejecutar CHROME_SHOW regresa al monitor externo.

tell application "System Events"
    tell process "Google Chrome"
        set position of window 1 to {0, 0}
        set size of window 1 to {800, 600}
    end tell
end tell

tell application id "com.figure53.QLab.5" to activate
Zoom zoom.us
AppleScript
-- ZOOM_SHOW
-- Mueve la ventana de Zoom al monitor externo y la expande
-- a pantalla completa sin robar el foco a QLab.
--
-- Requisitos:
--   · Zoom abierto y en llamada activa
--   · Permiso de Accesibilidad en
--     Sistema → Privacidad y Seguridad → Accesibilidad
--
-- *** EDITA LAS COORDENADAS DE TU MONITOR EXTERNO ***
property origen_x : 1920
property origen_y : 0
property ancho : 1920
property alto : 1080

tell application "System Events"
    tell process "zoom.us"
        set position of window 1 to {origen_x, origen_y}
        set size of window 1 to {ancho, alto}
    end tell
end tell
AppleScript
-- ZOOM_HIDE
-- Retira Zoom del monitor externo sin cerrar la llamada.
-- La ventana queda aparcada en el monitor principal detrás de QLab.
-- Al volver a ejecutar ZOOM_SHOW regresa al monitor externo.

tell application "System Events"
    tell process "zoom.us"
        set position of window 1 to {0, 0}
        set size of window 1 to {800, 600}
    end tell
end tell

tell application id "com.figure53.QLab.5" to activate
PDF / Preview macOS Preview
AppleScript
-- PDF_SHOW
-- Abre un PDF en el monitor externo a pantalla completa.
-- QLab permanece operativo en el monitor principal.
--
-- Requisitos:
--   · Permiso de Accesibilidad en
--     Sistema → Privacidad y Seguridad → Accesibilidad
--
-- *** EDITA LA RUTA AL ARCHIVO Y LAS COORDENADAS AQUÍ ***
property rutaArchivo : "/Users/TU_USUARIO/Desktop/NOMBRE_DOCUMENTO.pdf"
property origen_x : 1920
property origen_y : 0
property ancho : 1920
property alto : 1080

do shell script "open -g -a 'Preview' " & quoted form of rutaArchivo
delay 1.5

tell application "System Events"
    tell process "Preview"
        set position of window 1 to {origen_x, origen_y}
        set size of window 1 to {ancho, alto}
    end tell
end tell

tell application id "com.figure53.QLab.5" to activate
AppleScript
-- PDF_CLOSE
-- Cierra el documento activo en Preview sin guardar.
-- Usar al terminar la presentación del PDF.

tell application "Preview"
    try
        close front document saving no
    on error
        -- Si ya estaba cerrado, no hacer nada
    end try
end tell
QLab-Scripts-Live-Events.qlab5
Los ocho scripts ya pegados en QLab, con nombre y orden. Abre, edita las rutas y ya está.