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

 
Send Firefox URL to Omnifocus Thread Tools Search this Thread Display Modes
Despite Firefox's dreadful applescript support, I have a posted a couple grab url Firefox scripts on my scripts download page along with installation and integration instructions:

http://www.sandro.org/omnifocus/

Enjoy..
 
I decided I wanted to use a bookmarklet to do the same thing, so I created a simple AppleScript and packaged it as an application bundle and protocol handler.

I can now just click the bookmarklet in my bookmarks toolbar in Firefox, it launches the AppleScript and passes to it both the current URL and page title. The AppleScript then activates OmniFocus and creates a new task in the Inbox, with the title of the web page as the name of the task and the URL as the note.

I explain in more detail on my blog, where you'll also find a link to download the .dmg:

http://mcphate.org/mt/2007/08/copy_u...omnifocus.html

Be sure to read the ReadMe that's in the disk image; it explains how to create the bookmarklet. It also explains how to modify the AppleScript. I've packaged it as both read/write, so everyone has full access to the source code.

Suggestions for improvement are welcome...

Charles
 
Useful bookmarklet.

If like me you don't like having the bookmark toolbar open you can turn the bookmarklet into a firefox toolbar button like this:

- Add to the bookmark toolbar as suggested in the instructions
- Open toolbars:customize...
- Drag the Bookmarklet to the main toolbar, position it where you like.
- Close customise.

- With something like Iconographer design an icon for the bookmarklet.
- Save in .ico format.
- Download and install the firefox addon "favicon picker 2"
- Set the icon of the bookmark to your .ico file.
- (favicon picker 2 can be disabled straight away if you like to minimise addons.)
- If you just want an icon and no text, then remove the bookmarklet's name in bookmarks organiser.
 
ChuckieMac,

I installed your CopyURLToOmniFocus and when I click the Bookmark, it launches the app and I get a Spinning black and white wheel for a sec, but nothing gets put into the inbox.

Any ideas?
 
One of today's builds broke the activate AppleScript command for OF. I suspect that's what's interfering with the script here.
__________________
Cheers,

Curt
 
I'll try it in the next rev.

Thanks

Rich
 
Quote:
Originally Posted by curt.clifton View Post
One of today's builds broke the activate AppleScript command for OF. I suspect that's what's interfering with the script here.
It seems that the "activate" command is still broken. I was able to get the script working by replacing the "activate" command with a "display dialog" - this brings OF to the front so that the rest of the script can run.

I played for a bit to try other ways to get OF to the front, but with my extremely limited knowledge of AppleScript I didn't get very far. I'll try to dig and learn more when I have more time.

I was hoping to be able to create / obtain a "quick entry tree" object, hoping that "activate" would work on it. (this, to me, would be the ideal behavior anyway - if OF has to be brought to the front for the URL capture anyway, I'd rather that the quick entry window came up so that the entry could be doctored before committing the capture.
 
fudster,

You might have a look at my Mail --> OF script for some code. It creates new tasks via the QuickEntry window. You can get the script here.
__________________
Cheers,

Curt
 
Quote:
Originally Posted by Hawkcode View Post
ChuckieMac,

I installed your CopyURLToOmniFocus and when I click the Bookmark, it launches the app and I get a Spinning black and white wheel for a sec, but nothing gets put into the inbox.

Any ideas?
I just tried the script with the most recent builds of both OF & FF and it did work. I have noticed one issue with FF which i noted on my OF Scripts page, but here it is:

Quote:
NOTE: If you notice that the script was working then just stopped working, chances are that it's actually Firefox that is misbehaving. There is a bug in Firefox where after a period of time other applications (like applescripts, url manager pro, et al) cannot access the url/title of the current window and tab. I haven't figured out if it's related to having too many tabs open, running firefox for too long and memory bloat kicks in, or some odd issue with one of the extensions I have installed (and I have quite a few installed), or what. Unfortunately the only fix I have found to work is to restart Firefox, which if you have Tab Mix Plus installed shouldn't be an issue (check it's session save/restore options).
i know this isn't a "fix" by any means but until i can figure out why exactly things work then simply stop working, it's the only thing i can suggest. Please let me know if it does/doesn't work for you.

Quote:
Originally Posted by curt.clifton View Post
One of today's builds broke the activate AppleScript command for OF. I suspect that's what's interfering with the script here.
It did indeed, i have to tweak pretty much every script i have written. Ah the joys of Alpha-ness...
 
Any word if there's a new CopyURLToOmniFocus script working?

Thanks

Rich
 
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Thunderbird and Firefox with Omnifocus MacYogi OmniFocus 1 for Mac 0 2010-07-10 07:22 PM
OmniFocus with Thunderbird and Firefox R J OmniFocus 1 for Mac 6 2010-04-06 11:14 PM
Problem using clipping with Omnifocus 1.7.5 and Firefox 3.6 fredslz OmniFocus 1 for Mac 6 2010-03-12 10:20 AM
OmniFocus and Firefox WCityMike OmniFocus 1 for Mac 2 2010-02-05 05:32 AM
Any plans on creating a firefox add-on for omnifocus on other OS? kasulachetu OmniFocus 1 for Mac 3 2009-10-15 09:21 AM


All times are GMT -8. The time now is 01:10 AM.


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