Relocation
[QUOTE=Lizard]Hope you don't mind that I've relocated it for you.[/QUOTE]
Not at all. I didn't know how. |
Nicely done. This is quite useful, and it's actually astonishingly nicely readable Bash.
|
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. |
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. |
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 |
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]
|
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 |
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.