PowerPoint, Chrome, Zoom, PDF y Spotify, dentro de tu cuelist. Sin cambiar de aplicación, sin perder el foco del show.
-- 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
-- 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
-- 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
-- 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_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
-- 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_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
-- 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
-- SPOTIFY_PLAY -- Arranca la reproducción en Spotify sin robar el foco a QLab. -- Útil para música de sala entre actos o durante el descanso. -- Spotify debe estar abierto y con la lista/canción deseada ya cargada. -- -- Requisitos: -- · Spotify para Mac (spotify.com/download) -- · La playlist o canción lista antes del show -- · Permiso de Accesibilidad en -- Sistema → Privacidad y Seguridad → Accesibilidad -- -- *** OPCIONAL: edita el volumen de inicio (0–100) *** property volumenInicio : 80 -- Paso 1: asegurarse de que Spotify está abierto if not (application "Spotify" is running) then tell application "Spotify" to activate delay 2 end if -- Paso 2: ajustar el volumen y arrancar tell application "Spotify" set sound volume to volumenInicio play end tell -- Paso 3: mantener el foco en QLab tell application id "com.figure53.QLab.5" to activate
-- SPOTIFY_PAUSE -- Pausa la reproducción de Spotify manteniendo la posición en la canción. -- Usar para interrupciones breves — el show retoma con SPOTIFY_RESUME. -- Para paradas definitivas entre actos, usa SPOTIFY_STOP. tell application "Spotify" try pause on error -- Si ya estaba pausado, no hacer nada end try end tell tell application id "com.figure53.QLab.5" to activate
-- SPOTIFY_STOP -- Para la reproducción de Spotify sin cerrar la aplicación. -- Usar al terminar el descanso o cuando el show retoma. -- -- Opcional: SPOTIFY_FADE (ver comentario al final) hace un fade out -- progresivo antes de parar — más elegante en sala con público. tell application "Spotify" try pause on error -- Si ya estaba parado, no hacer nada end try end tell -- Mantener el foco en QLab tell application id "com.figure53.QLab.5" to activate -- *** ALTERNATIVA CON FADE OUT *** -- Sustituye el bloque "tell application Spotify" de arriba por esto -- si quieres un descenso gradual de volumen antes de parar: -- -- tell application "Spotify" -- set volumenActual to sound volume -- repeat while volumenActual > 0 -- set volumenActual to volumenActual - 5 -- if volumenActual < 0 then set volumenActual to 0 -- set sound volume to volumenActual -- delay 0.1 -- end repeat -- pause -- set sound volume to 80 -- restaurar volumen para el siguiente cue -- end tell