danielbleyer Posted November 1, 2013 Share Posted November 1, 2013 (edited) Hello, a while back I found a little AppleScript for OmniFocus users. The author is Shawn Blanc. It is used to have access to the Quick-Entry Pane, even if OmniFocus isn't running at the moment. Set-up: the workflow should be triggered with the same keyboard shortcut you use to activate the OmniFocus Quick-Entry Pane. This way you won't have to worry about starting OmniFocus to use your Quick-Entry Pane, it's always ready! I just put the script into a workflow and added a trigger. The only thing you have to do is choose the shortcut and you're done. download the workflow here: https://www.dropbox.com/s/1wnhuk0jr3v8ot8/OopsieFocus.alfredworkflow Credits go to: http://shawnblanc.net/2011/06/oopsiefocus/ Hope you enjoy this, (it's pretty useful if you happen to use the Quick-Entry Pane as often as I do) Daniel. Edited November 9, 2013 by danielbleyer Link to comment
tsvoronos Posted November 4, 2013 Share Posted November 4, 2013 Looks like the link doesn't work? Link to comment
danielbleyer Posted November 5, 2013 Author Share Posted November 5, 2013 @tsvoronos Hi, I updated the link. The workflow got deleted by accident, sorry for that. Let me know if it works for you. Do you find this hack useful? Daniel. Link to comment
caaronbrown Posted November 8, 2013 Share Posted November 8, 2013 The link still appears to be broken. Link to comment
twinpeaks Posted November 8, 2013 Share Posted November 8, 2013 - In an empty workflow press the "+" in the top right of the sheet. From the drop down select "Actions" -> "Run Script" - in the new bloc that shows up, double-click and select language to the use the /usr/bin/osascript interpreter. - Leave all escaping options alone (checked/selected) and paste the following script into the appropriate area. Now add a hotkey field with the "+" button again, Select "Triggers" and then "Hotkey" Double click the new hotkey bloc and put in a combination. After that connect the two items. Hotkey----->Run Script See the credits link in the first post? http://shawnblanc.net/2011/06/oopsiefocus/ The script is verbatim from shawn's site and no modification was necessary to make it work with Alfred. Should be good to go. No work, no problem. set GTDAppName to "OmniFocus" global GTDAppName set GTDAppToUse to FindRunningGTDApp() if (GTDAppToUse is null) then set GTDAppToUse to "OmniFocus" end if -- Is OmniFocus running? on AppIsRunning(GTDAppName) tell application "System Events" return (count of (application processes whose name is GTDAppName)) is not 0 end tell end AppIsRunning -- If OmniFocus is running, do nothing. -- If OmniFocus is not running, launch it and bring up the Quick Entry Panel. on FindRunningGTDApp() if AppIsRunning(GTDAppName) then null else tell application "OmniFocus" activate tell quick entry open make new inbox task tell application "System Events" to keystroke tab end tell end tell end if return null end FindRunningGTDApp Link to comment
danielbleyer Posted November 9, 2013 Author Share Posted November 9, 2013 Thanks for making it available to other people. I don't understand why the Dropbox-Link did not work. Daniel. Link to comment
twinpeaks Posted November 10, 2013 Share Posted November 10, 2013 No problem, nice find! danielbleyer 1 Link to comment
vinyldust Posted November 17, 2013 Share Posted November 17, 2013 Nice guys, worked Great with the script and instructions. Cheers! Link to comment
Kim Blair Posted February 12, 2014 Share Posted February 12, 2014 I can not make this script work in Alfred… I have Alfred2 and power pack. I bought Alfred2 just for scripts, but apparently I'm missing something. :/ Any help would be greatly appreciated. Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now