Well, i can solve half of your problems.
You can get chromeWindow using Utils.currentChromeWindow

On Tue, Feb 10, 2009 at 6:41 PM, lrbabe <[email protected]> wrote:

>
> Hello everybody,
>
> I'm spending some time today to try to understand what actually is
> this "context" that is supposed to be defined when triggering a
> command.
> I would like to execute arbitrary code each time Ubiquity is opened
> that execute an existing command.
>
> I'm trying to use the following piece of code right in the Ubiquity
> Command Editor:
>
> context.chromeWindow.gUbiquity.__cmdManager.__cmdSource.getCommand
> ( "existing-command" ).execute(
>  context, {text:"any text"}, {} );
> );
>
> Of course it doesn't work because there is no context defined when the
> code is executed. The problem is that I don't know exactly what a
> context is (there is no documentation about it AFAIK) and how to
> "build" one...
>
> Thanks in advance for your clarifications : )
> Louis-rémi Babé
> >
>


-- 
Fernando "Takai"
http://flickr.com/photos/supeertakai
http://fernandotakai.jaiku.com

Get Ubiquity: https://ubiquity.mozilla.com

--~--~---------~--~----~------------~-------~--~----~
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