Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Running an applescript to have Quicktime save a screen capture hangs at "Finishing Recording..."

Running an applescript to have Quicktime save a screen capture hangs at "Finishing Recording..."


Here is the script

tellapplication "QuickTime Player"

set newScreenRecording to new screen recording

tell newScreenRecording

start

delay 3

stop

end tell

telllastitemofdocuments

(exportin ("" & (path todesktop) & "quicktimeFile.m4v") using settings preset"480p")

close

end tell

end tell

I have tried many variations from the searching on the web.

Any suggestions?


MacBook Pro with Retina display, OS X Yosemite (10.10.4)

MacBook Pro with Retina display, OS X Yosemite (10.10.4)

Posted on Aug 27, 2015 9:29 AM

Reply
3 replies

Aug 27, 2015 12:06 PM in response to tpirozzi

Hi,


It's a bug on Mavericks and on Yosemite

Another bug on the export command, i have permissions issues when i use the ".m4v" extension.


Try this :

----------------------

set x to (path to desktop as string) & "quicktimeFile.mov"

tell application "QuickTime Player"

activate

set newScreenRecording to new screen recording

my putInMenuBar()

tell newScreenRecording

start

delay 3

stop

end tell

exportdocument 1 in (filex) using settings preset "480p"

closedocument 1 savingno

end tell


on putInMenuBar()

delay 1

tell application "System Events"

tell process "QuickTime Player"

set frontmost to true

key code 49

end tell

end tell

end putInMenuBar

------------------------------

Running an applescript to have Quicktime save a screen capture hangs at "Finishing Recording..."

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.