On Thu, Jan 8, 2009 at 10:06 PM, pellefjant <[email protected]> wrote:

>
> Hi!
>
> Is there a variable i can use in when i type commands that holds the
> current tabs url?
>

Hi Per

You can use CmdUtils.getWindow().location.href to access the current url


>
> For example i use Ubiquity to add tasks to Remember The Milk.
> I usually then select a header and pull up ubiquity and type "rtm-add
> Buy this".
> It would be nice if i was able to include the url to the in this case
> book im going to buy like this:
> "rtm-add Buy this from $url"... or something


This guide might be of help too:
https://wiki.mozilla.org/Labs/Ubiquity/Ubiquity_0.1_Author_Tutorial#Commands_with_Arguments

-- cers / Christian Sonne


>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"ubiquity-firefox" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/ubiquity-firefox?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to