The Omni Group
These forums are now read-only. Please visit our new forums to participate in discussion. A new account will be required to post in the new forums. For more info on the switch, see this post. Thank you!

Go Back   The Omni Group Forums > OmniFocus > OmniFocus Extras
FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
FAQ: Installing & running an OF applescript Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
(This comes up quite often, so it may be worth having a post to refer to whenever it arises)

OF applescripts can be run from the OF toolbar, from the OF Script menu, or from tools like LaunchBar, Keyboard Maestro, or FastScripts.

Since OmniFocus 1.8 it has been possible to use AppleScript applications as toolbar items (in addition to Automator workflows, and scripts stored in text, compiled, and script bundle format).

To install an applescript to be run from the OF Scripts menu:
  1. Check that the Script menu icon appears on the OS X menu bar
    If it doesn't:
    • OS X 10.6:
      Run the Applescript Editor from the Utilities folder within the Application folder, and ensure that the following settings are checked:
      Applescript Editor > Preferences > General > Show script menu in menu bar
      Applescript Editor > Preferences > General > Show computer scripts
    • OS X 10.5:
      Run the Applescript Utility from the Applescript folder within the Applications folder, and ensure that "Show Script menu in menu bar" is checked
  2. Place the script in the appropriate folder
    • Start OmniFocus
    • Click the Script menu icon in the OS X menu bar
    • Choose Open Scripts Folder/Open OmniFocus Scripts Folder
    • Copy your script into the OmniFocus scripts folder, which should now have opened.
  3. When OmniFocus is running, your script can now be run from the OmniFocus scripts section of the Script menu.


To install an applescript to be run from the OF toolbar:
  1. Place the applescript in the OF scripts folder
    • (see previous section)
  2. Optionally choose an icon for the script
    • Select the .scpt file in the Finder
    • Choose File > Get Info in the Finder menu (or Cmd I)
    • Select the icon in the dialog
    • Copy a simple image into the clipboard from any graphic source
    • Past the image onto the icon in the file Info dialogue.
  3. Get the applescript onto the OF toolbar

    In OmniFocus, choose View>Customize_Toolbar.

    The dialog which appears will now enable you to drag your applescript onto the OF toolbar.

    Close the dialog, and experiment with running your applescript by clicking its icon in the toolbar.

Last edited by RobTrew; 2011-06-16 at 11:49 PM.. Reason: OF 1.8 now supports applescript applications on the toolbar
 
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
trouble installing scripts mwarner OmniFocus 1 for Mac 1 2013-02-27 07:12 AM
Installing new diagram style philat101 OmniGraffle Extras 6 2012-10-05 02:32 AM
Default window doesn't open after running Applescript ryans OmniFocus Extras 4 2010-10-29 09:48 PM
Installing frameworks Werdan Omni Frameworks 1 2010-07-21 12:54 PM
Installing OmniFocus For My Users schalliol OmniFocus for iPhone 4 2008-07-11 12:11 PM


All times are GMT -8. The time now is 10:41 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.