H.264 PR start and stop - Media Express Apple Script!!!

Ask software engineering and SDK questions for developers working on Mac OS X, Windows or Linux.
  • Author
  • Message
Offline

Scott Beck

  • Posts: 2
  • Joined: Fri May 26, 2017 12:18 am

H.264 PR start and stop - Media Express Apple Script!!!

PostFri May 26, 2017 12:26 am

Hello, I have an apple script that I need help with PLEASE.. I am trying to...
1. Start the application Media Express
2. Start the recording
3. record for a duration of time
4. Stop the recording
5. Close Media Express
6. DON'T SAVE
7. Exit/Finished

I have steps 1 -4 working...but I can't get 5-7...I need help with the final steps, please! I know may people that would find this very helpful... The script is below...

tell application "Blackmagic Media Express"
activate
tell application "System Events"
keystroke "1" using {command down} -- Command-1
delay 5
key code 15 using {command down} -- Command-r
delay 5
key code 53
end tell
end tell

ABOVE is the script that works fine with steps 5-7

Any idea what to add?

I have tried this and it doesn't work...

tell application "Blackmagic Media Express"
activate
tell application "System Events"
keystroke "1" using {command down} -- Command-1
delay 5
key code 15 using {command down} -- Command-r
delay 10
key code 53
delay 5
end tell
quit
tell application "System Events"
key code 48
key code 48
delay 3
key code 36
end tell
end tell



PLEASE Help!
Offline

Joscon5

  • Posts: 1
  • Joined: Sun Dec 16, 2018 3:29 pm
  • Real Name: Josh Connolly

Re: H.264 PR start and stop - Media Express Apple Script!!!

PostSun Dec 16, 2018 3:51 pm

I know this is an old post, but since I came across it when I was trying to do a similar thing, I wanted to post the solution I came up with in hopes it helps others.

tell application "Blackmagic Media Express"
activate -- opens Blackmagic Media Express
end tell
tell application "System Events"
keystroke "1" using {command down} -- Command-1 goes to record window
delay 5
key code 15 using {command down} -- Command-r starts recording
delay 5
key code 53 -- Escape stops recording
keystroke "q" using {command down} -- Command-q close application
key code 53 -- Escape exits the save menu
keystroke "q" using {command down} -- Command-q closes the application and the save menu doesn't appear.
end tell

Return to Software Developers

Who is online

Users browsing this forum: No registered users and 18 guests