The Omni Group Forums

The Omni Group Forums (http://forums.omnigroup.com/index.php)
-   OmniFocus for iPhone (http://forums.omnigroup.com/forumdisplay.php?f=49)
-   -   How to create a "Capture to inbox" icon (http://forums.omnigroup.com/showthread.php?t=23210)

Lightstorm 2012-01-20 05:46 PM

[QUOTE=pastorhudson;106380]Yep I didn't think about needing an Internet connection. It doesn't work in airplane mode. That stinks. I'll add a note to the tutorial. Thanks for letting me know. Maybe this is why omni hasn't made it a standard feature.[/QUOTE]

Well, technically it DOESN'T need an internet connection. If you type "omnifocus:///add?note" in a URL bar it works with your internet off. The problem lies in being able to make a bookmark that you can then "Add to Homescreen".

Not sure you're able to do this, though.

pastorhudson 2012-01-20 05:54 PM

[QUOTE=Lightstorm;106381]Well, technically it DOESN'T need an internet connection. If you type "omnifocus:///add?note" in a URL bar it works with your internet off. The problem lies in being able to make a bookmark that you can then "Add to Homescreen".

Not sure you're able to do this, though.[/QUOTE]

Ya it is possible if you are willing to do some jailbreak hackery, but I wanted to find a way that any user could use. The only way I could find to add the omnifocus:///add?note as a home screen icon was through the webclip page. I guess I could make a tutorial for those who are willing to get their hands dirty, but I don't know if that sort of thing is acceptable in these forums.

pastorhudson 2012-01-20 06:08 PM

If you know how to edit a plists then you can make this work for you. You do have to have created at least one homescreen shortcut icon to begin with.

Find /var/mobile/Library/WebClips and find the folder for the web lip you want to launch omnifocus quick entry. In the folder open the Info.plist and at the bottom you will see the URL in <string></string> brackets. Make it say <string>omnifocus:///add?note</string> save the plist and your done. Now it will work wether you have Internet or not.

pastorhudson 2012-01-20 08:03 PM

[QUOTE=DrJJWMac;106374]The downside is, this requires an internet connection to work. We folks with iPods and outside of WiFi areas cannot use it.

--
JJW[/QUOTE]

Got a fix for you copy the code below and put it in the safari address bar on your iPod. After the page loads then click share button and Add to Homescreen. If all goes well you will have an icon that works even without wifi. Let me know if it works a d I'll update the tutorial.

[CODE]data:text/html;charset=UTF-8,%3Chtml%3E%3Chead%3E%3Cmeta%20name=%22viewport%22%20content=%22width=device-width,%20initial-scale=1.0,%20maximum-scale=1.0,%20user-scalable=no%22%20/%3E%3Cmeta%20name=%22apple-mobile-web-app-capable%22%20content=%22yes%22%20/%3E%3Ctitle%3EQuick Entry%3C/title%3E%3Cscript%20type=%22text/javascript%22%3Eif%20(!window.navigator.standalone)%20%7Bdocument.write(%22%3Clink%20rel='apple-touch-icon-precomposed'%20href='http://lightstormstudios.com/temp/omnifocus.png'%20/%3E%22);%7D%3C/script%3E%3C/head%3E%3Cbody%20style='margin:0px;%20background-color:%23aeaeae;'%3E%3Ca%20id=%22shortcut%22%20href=%22omnifocus:///add?note%22%3E%3C/a%3E%3Cscript%20type=%22text/javascript%22%3Eif%20(window.navigator.standalone)%20%7B%20var%20e=%20document.getElementById(%22shortcut%22);var%20ev=%20document.createEvent(%22MouseEvents%22);ev.initEvent(%22click%22,true,true);%20e.dispatchEvent(ev);%7Delse%7Bdocument.write('%3Cdiv%20id=%22icon%22%3E%3Ca%20id=%22shortcut%22%20href=%22omnifocus:///add?note%22%3E%3Cimg%20src=%22http://lightstormstudios.com/temp/omnifocus.png%22%20width=%22114%22%20height=%22114%22%3E%3C/a%3E%3Cspan%20id=%22icon_text%22%3EQuick Entry%3C/span%3E%3C/div%3E%3Cdiv%20id=%22addToHomeScreen%22%20class=%22iphone%22%3ECreate%20a%20shortcut%20to%20%3Cstrong%3EOmnifocus Quick Entry%3C/strong%3E:%20tap%20%3Cspan%20class=%22share%22%3Eshare%3C/span%3E%20and%20then%20%3Cstrong%3EAdd%20to%20Home%20Screen%3C/strong%3E.%20Please%20wait%20until%20icon%20image%20is%20fully%20loaded%20in%20next%20view.%3Cspan%20class=%22arrow%22%3E%3C/span%3E%3C/div%3E');%7D%3C/script%3E%3C/body%3E%3C/html%3E[/CODE]

psidnell 2012-01-21 12:48 AM

Cool, that worked for me on the iPad.

eronel 2012-01-21 04:10 AM

Another option that may work (I haven't yet tested it out) is the Icon Project app on the iTunes store. The description says that this $.99 app lets you set up all kinds of icons on your iDevice.

pastorhudson 2012-01-21 06:16 AM

[QUOTE=eronel;106390]Another option that may work (I haven't yet tested it out) is the Icon Project app on the iTunes store. The description says that this $.99 app lets you set up all kinds of icons on your iDevice.[/QUOTE]

I tried it last night. Before finding the code workaround. The Icon Project did NOT work :( It somehow drops the : in omnifocus:///add?note so your browser doesn't load correctly.

pastorhudson 2012-01-21 07:59 AM

[QUOTE=pastorhudson;106388]Got a fix for you copy the code below and put it in the safari address bar on your iPod. After the page loads then click share button and Add to Homescreen. If all goes well you will have an icon that works even without wifi. Let me know if it works a d I'll update the tutorial.

[CODE]data:text/html;charset=UTF-8,%3Chtml%3E%3Chead%3E%3Cmeta%20name=%22viewport%22%20content=%22width=device-width,%20initial-scale=1.0,%20maximum-scale=1.0,%20user-scalable=no%22%20/%3E%3Cmeta%20name=%22apple-mobile-web-app-capable%22%20content=%22yes%22%20/%3E%3Ctitle%3EQuick Entry%3C/title%3E%3Cscript%20type=%22text/javascript%22%3Eif%20(!window.navigator.standalone)%20%7Bdocument.write(%22%3Clink%20rel='apple-touch-icon-precomposed'%20href='http://lightstormstudios.com/temp/omnifocus.png'%20/%3E%22);%7D%3C/script%3E%3C/head%3E%3Cbody%20style='margin:0px;%20background-color:%23aeaeae;'%3E%3Ca%20id=%22shortcut%22%20href=%22omnifocus:///add?note%22%3E%3C/a%3E%3Cscript%20type=%22text/javascript%22%3Eif%20(window.navigator.standalone)%20%7B%20var%20e=%20document.getElementById(%22shortcut%22);var%20ev=%20document.createEvent(%22MouseEvents%22);ev.initEvent(%22click%22,true,true);%20e.dispatchEvent(ev);%7Delse%7Bdocument.write('%3Cdiv%20id=%22icon%22%3E%3Ca%20id=%22shortcut%22%20href=%22omnifocus:///add?note%22%3E%3Cimg%20src=%22http://lightstormstudios.com/temp/omnifocus.png%22%20width=%22114%22%20height=%22114%22%3E%3C/a%3E%3Cspan%20id=%22icon_text%22%3EQuick Entry%3C/span%3E%3C/div%3E%3Cdiv%20id=%22addToHomeScreen%22%20class=%22iphone%22%3ECreate%20a%20shortcut%20to%20%3Cstrong%3EOmnifocus Quick Entry%3C/strong%3E:%20tap%20%3Cspan%20class=%22share%22%3Eshare%3C/span%3E%20and%20then%20%3Cstrong%3EAdd%20to%20Home%20Screen%3C/strong%3E.%20Please%20wait%20until%20icon%20image%20is%20fully%20loaded%20in%20next%20view.%3Cspan%20class=%22arrow%22%3E%3C/span%3E%3C/div%3E');%7D%3C/script%3E%3C/body%3E%3C/html%3E[/CODE][/QUOTE]

Updated to reflect this new improved method. I think it's a bit faster too.

Kourosh 2012-01-21 09:47 AM

Thanks, pastorhudson! This is a neat trick. Just added it to my homescreen.

eurobubba 2012-01-21 10:12 AM

Sorry for the stupid question, but what's the "share" icon? (iPhone, iOS 5.0.1)


All times are GMT -8. The time now is 07:09 AM.

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