Jump to content
Jb_Bryant

Start Quicktime screencast workflow

Recommended Posts

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.

 

Share this post


Link to post

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.

Share this post


Link to post

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

Share this post


Link to post

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!

Share this post


Link to post

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.

Share this post


Link to post
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.

 

Share this post


Link to post
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.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...