Jump to content

Starting a Session on Freedom distraction blocker app using keyboard shortcut

Recommended Posts

Hi all,


I saw that there is a way of using Focus from within Alfred. Has anyone managed to create a workflow to use Freedom? I am interested in being able to start a session that blocks everything on the internet that is not on my whitelist for 45 minutes at a time in 2 seconds using a keyboard shortcut.



Link to comment
  • 7 months later...

Yeah I figured this one out using AppleScript. The workflow opens the Freedom dashboard, clicks on the blocklist and device you've asked for, and then starts the block.



  • I have an external trigger in there so I can link to this workflow from other workflows. It's not necessary; you can get rid of it.
  • "Whitelist" means block all sites and "blocklist" means block the first custom blocklist you have. You'll have to customize the AppleScript if you want to change what lists the workflow clicks on.
  • The workflow very very rarely doesn't work: you select a block, it open the dashboard and tries to start it, but something messes up. I think this has something to do with the webpage not loading properly or looking different from what the AppleScript expects. It'll work when you try it again. It never fails multiple times in succession.



Link to comment

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...