![]() This was tested under macOS Catalina with Language & Region set to English (US) in System Preferences and worked for me as coded. It is also coded so if the User clicks the close button on the new audio recording window the Cancel button is clicked and the script stops and saves the recording.Īdjust the value of the delay command within the repeat loop as you feel is appropriate. This avoids wasted CPU cycles having too correct for the silent errors by not having to call them a second time under tell current application.Īs coded, this assumes there will only be one QuickTime Player window doing an audio recording at a time and remains the frontmost window of QuickTime Player. ![]() The open for access and close access commands are part of Standard Additions and actually silently error out when wrapped within the tell application "QuickTime Player" block and why they have been separated. Tell application process "QuickTime Player" Set newRecording to (new audio recording) This is how I'd wait for the User to manually stop the recording to then proceed and proceed the rest of the code: set filePath to (path to desktop as text) & "test.m4a"
0 Comments
Leave a Reply. |