View Single Post
In response to a request in this thread:

http://forums.omnigroup.com/showthread.php?t=4245

I am releasing a shell script that I have written which downloads and installs the latest version of OmniFocus.

Use at your own risk. Really. I mean it.

Here's the installation process. NOTE: you will need to be at least a little comfortable editing text files and using Terminal.app to make this work.


1) Write this down: "I <insert name here> do solemly swear that I am solely responsible for my own actions and hereby take full responsibility for whatever this script does to my data, my love life, and the acne on my back."

2) Sign it, Date it, and Post it on wall above monitor

3) download

http://tj.tntluoma.com/files/get-omnifocus.sh

(Note: Safari calls it an "Application")

4) Open the file in a text editor (such as BBEdit or TextWrangler -- NOT Microsoft Word or any other app which might convert it from plain text)

5) Read over the parts at the top. You will need to enter the username and password that you use to download OmniFocus. If you don't have that, search your email archive.

You need to change, AT MINIMUM, three lines, which begin with

EULA=

LOGIN=

PASSWORD=

And a 4th if you have installed OmniFocus anywhere other than /Applications/ such as ~/Applications/

6) Save the file to your Desktop (it may already be saved there, but you need to make sure you save your changes)

7) Open Terminal.app

8) Read the note posted on the wall above your monitor

9) Type this (I recommend that you copy and paste each line to avoid typos)

mkdir -p ~/bin/

cd Desktop

chmod 755 get-omnifocus.sh

mv -i get-omnifocus.sh ~/bin/

10) That will 'install' the script. To run it, simply type:

~/bin/get-omnifocus.sh

and watch what it says.


NOTE: Do *NOT* use this script in 'cron' or some other automated way. If you want to know when the newest builds are available, follow the RSS feed at

http://www.omnigroup.com/appcast/?ti...ack=sneakypeek


If the sign over your monitor didn't make it abundantly clear, you are using this entirely at your own risk.

All I will say is that I have been using it for a couple of weeks without any problems. I just added a bit more error catching code before posting it here.

A few more notes:

The script tries to make sure that OmniFocus is not running before it installs a new version. It can, however, safely check to see if there is a new version while OmniFocus is running. It will just not do the install until you manually quit OmniFocus.

When a new version is found, the old version is moved to your Recycle Bin with the build number attached. For example if you were using build 1100 and build 1200 came out, build number 1200 would get installed and in your Recycle Bin you would see:

OmniFocus.1100.app

which tells you what build it was in case you need to downgrade OmniFocus (just don't empty your trash until you make sure the new version works :-)

Please post questions and comments back to this thread