The Omni Group Forums

The Omni Group Forums (http://forums.omnigroup.com/index.php)
-   OmniFocus Extras (http://forums.omnigroup.com/forumdisplay.php?f=44)
-   -   get-omnifocus.sh version 1.0 released (http://forums.omnigroup.com/showthread.php?t=4258)

luomat 2007-07-23 12:48 PM

Relocation
 
[QUOTE=Lizard]Hope you don't mind that I've relocated it for you.[/QUOTE]

Not at all. I didn't know how.

jrk 2007-08-01 09:09 AM

Nicely done. This is quite useful, and it's actually astonishingly nicely readable Bash.

luomat 2007-08-01 09:20 AM

thanks
 
[QUOTE=jrk;18557]Nicely done. This is quite useful, and it's actually astonishingly nicely readable Bash.[/QUOTE]

thanks. 10+ years of writing shell scripts has taught me that in 6 months when I go back to read the script I will have no idea how it works unless I leave a lot of breadcrumbs. If someone else can learn from it or spot mistakes, all the better.

curt.clifton 2007-08-03 01:34 AM

Timothy,

It appears that the OF bundle format changed in the last couple of days. I tweaked the script by replacing these lines:

[CODE]
CURRENT_BUILD=`fgrep -A1 OZBuildRevision "$INSTALLED_APP/Contents/Info.plist" |\
tr -d '\012'|\
sed 's#.*<string>##g; s#</string>##g'`
[/CODE]

with the following code that uses the Revision reported in the About box, which seems to match the web site:

[CODE]
CURRENT_BUILD=`egrep '^Revision' "$INSTALLED_APP/Contents/Resources/Versions.txt" |\
tr -d '\012'|\
sed 's#Revision: ##g'`

[/CODE]

Disclaimer: This code is primarily for Timothy's benefit. Others may use it, but if you are shy about the shell I'd suggest just waiting for Timothy to update his script.

luomat 2007-08-03 03:51 AM

Script Fixed
 
[QUOTE=curt.clifton;18688]Timothy,

It appears that the OF bundle format changed in the last couple of days.

[/QUOTE]

How dare they change their product and mess up my hack :-)


[QUOTE=curt.clifton;18688]
I tweaked the script by replacing these lines:

...

Disclaimer: This code is primarily for Timothy's benefit. Others may use it, but if you are shy about the shell I'd suggest just waiting for Timothy to update his script.[/QUOTE]

Script is thusly updated. Download URL is unchanged.

Thanks curt

Schlaefer 2007-08-03 03:59 AM

I wrote a little ruby script do to nearly the same. I polished it a little bit, use at your own risk: [url]http://siezi.de/deeplinks/misc/OmniFocusDownloader.zip[/url]

luomat 2007-08-06 04:40 PM

Updated again
 
Well now they've changed the web page format which broke the script.

I unbroke it again.

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

Dated 2007-08-06

Cortig 2007-08-08 11:46 AM

Very nice script indeed.
Once the script was made executable on my Mac, instead of moving it to ~/bin, I placed it in ~/Library/Script. This way it’s available right from the AppleScript menu in the Finder. The only thing is that I lose the feedback I was getting in the Terminal window (but the script works like a charm from the AppleScript menu :-) ).


All times are GMT -8. The time now is 05:17 AM.

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