Sample Header Ad - 728x90

Applescript - create a shortcut to control several applications simultaneously?

0 votes
1 answer
217 views
I have two instances of the Quicktime application running. I use two different video sources (Facetime camera and iPhone camera via USB), and I use "Movie recording" to record them. I also have Spotify running. I want to initiate "Record" in both Quicktime apps as well as initiate the "Play" command on the Spotify app at the same time via one key press. I have read this solution using Automator to create a Service with a shortcut here https://apple.stackexchange.com/a/334857/439929 . on run tell first document of application "QuickTime Player" to start end run I created a service for both QT apps and assigned the same keyboard shortcut to start both. I also assigned a shortcut to stop recording. When I tested, two problems occurred: 1. Only the second instance of QT player will record, irrespective of which is in the foreground. 2. When I stopped recording, a dialogue with “Finishing Recording” came up and would not disappear, even though the recording was finished. This doesn’t happen when stopping the recording by clicking the on screen stop button. I then added Spotify using the same process, with the same keyboard combination. Spotify will only play when the QT apps are disabled in System Preferences. I realise my approach is flawed, but I’m not sure if there is a way to achieve this. Any help would be appreciated! Thanks!
Asked by RexTheRunt (11 rep)
Nov 16, 2021, 02:50 PM
Last activity: Aug 5, 2024, 06:00 AM