Jump to content

Start Quicktime screencast workflow


Recommended Posts

Posted

I have an extension in Alfred v. 1 that I'm trying to turn into a workflow. The v. 1 extension ran this applescript upon entering "screencast" as the keyword. For the workflow, I'm trying the same thing and it never runs. I've tried:

 

 

tell application "QuickTime Player"
    start (new screen recording)
end tell
 
And
 
alfred_script(q)
tell application "QuickTime Player"
    start (new screen recording)
end tell
end alfred_script
 
Am I doing something wrong? I know it says applescripts "work but not finished for beta" but I don't know what that means exactly.

 

Posted

try

 

 

on alfred_script(q)
tell application "QuickTime Player"
    start (new screen recording)
end tell
end alfred_script
 
subtle difference, but, add "on" in front of the alfred_script(q) line.
Posted

on alfred_script(q)

tell application "QuickTime Player" to activate
tell application "System Events"
    tell process "QuickTime Player"
        keystroke "n" using {control down, command down}
        keystroke space
    end tell
end tell
end alfred_script
 
It works well, part on "my" workflow available there http://goo.gl/s6d4O
Posted

try

 

 

on alfred_script(q)
tell application "QuickTime Player"
    start (new screen recording)
end tell
end alfred_script
 
subtle difference, but, add "on" in front of the alfred_script(q) line.

 

Ahh I don't know how I missed that. Thanks!

  • 5 years later...
Posted

I'm pretty new to Alfred and can see how this is a huge time saver.

 

Does anyone know if there is a way to setup a shortcut to stop the screen recording > Export As > 1080p > To a DropBox folder > Copy DropBox link to clipboard.

Posted
1 hour ago, webdiner said:

Does anyone know if there is a way to setup a shortcut to stop the screen recording > Export As > 1080p > To a DropBox folder > Copy DropBox link to clipboard.

 

That's probably going to be very difficult to do. You can export the file easily enough using AppleScript, but AFAIK the only way to do the Dropbox bit is to simulate right-clicking on the right file in Finder, which is very tricky to get right.

 

Posted
58 minutes ago, webdiner said:

Can you help with the Stop Recording > Export As > 1080p part?

 

No. I've just tried it, and it appears that the sandbox is preventing the export (using AppleScript). Presumably, it is doable (otherwise the API would be pointless), but I've spent 30 minutes trying to figure it out and couldn't.

 

Perhaps someone more knowledgeable about AppleScript can help.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...