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
(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
 
A way to find the folder for me is to go up to the script icon in the top menubar

pull it down to a folder (do not highlight a file)


For example: I pull down to the 'applications' folder, slide over to the 'OmniFocus' folder

at that point I let go of the mouse and the folder opens

if there wasn't an OmniFocus folder I would let go on applications and then (as you indicated) create one.

this is a great idea ---- an applescript FAQ
 
Quote:
Originally Posted by librarymonkey27 View Post
A way to find the folder for me is to go up to the script icon in the top menubar
Yes, me too - I didn't choose that route for the FAQ because the Show script menu in menu bar option will sometimes be un-checked in the Applescript Utility.
 
In that case, People should go and click that button, if only to have easy access to scripts
 
Yes - FAQ amended accordingly.
 
I cannot help but point people to my favorite little Applescript utility: FastScripts (www.red-sweater.com) and it's free sibling, FastScripts Lite. Both exceed the AppleScript Utility's script menu in a variety of ways, and both let you assign keyboard shortcuts to scripts.
 
I have the script icon in my menubar...but when I drill down through it, it doesn't show an Applications folder. When I go to my scripts folder in finder, it shows: Applications, DEVONthink, Personal, myscript.scpt

In the menubar drop down...it shows DEVONthink, Personal, and myscript

How do I get Applications to show up? I ran the AppleScript Utility and played with all the preferences with no success.
 
I have the same question as bpwhistler.

I'm a recent Mac/iPhone convert who just bought OmniFocus a few days ago. I got all the MobileMe stuff working. I've done a massive brain dump into the OF Inbox, assigned everything to Projects and Contexts, and got everything syncing just like it ought to. So far, so good.

But there's more and more and more to dump (I've been waiting 25 years for this, after all). So I got reQall, which is an ideal capture tool for me. I love it. Now all I want to do is (A) get the OF email rule working, and (B) understand the AppleScript process.

As a PC user, I knew how to write a script and what to do with it. As a Mac user, I'm a complete scripting noob all over again and having a hard time figuring out where to start. When I read a thread like this, it all makes perfect theoretical sense, but then (like the previous poster) I go looking for the Applications folder and... it's not there.

Any recommendations for a straightforward, easy to wrap your head around, nuts and bolts, AppleScript tutorial geared toward to new OF users?

'Cuz I'm not, um... getting things done. ;-)

Thanks!
 
I'm doing something wrong here. I've got my script in the finder scripts menu (no problem). I open the Customize toolbar window as described, but I can't drag any script onto it. I can't drag anything onto . All I can do is access the icons that are there.

What I'm trying to do is put the most excellent "Reveal" Applescript onto the toolbar.

J.
 
You shouldn't need to drag anything to the customize sheet. If the applescript has been installed into the correct folder, you should see the icon in the sheet.

What you want to do is drag the icon for the script from the sheet and to your OmniFocus 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 01:55 AM.


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