Forum closed
This forum was closed and turned into an archive effective April 21, 2018. It is no longer possible to create new topics or reply to existing topics.

Thanks everyone for all the great questions and contributions over the years.

Please use the Contact form to get in touch.

Remote Buddy Forum

Overview 

AuthorThread
User

15.02.2009 13:43:07
True menu integration
View

This posting is older than 6 months and can contain outdated information.
Hi, I recently started using Remote Buddy on my Mac Mini and I'm now working on a Behavior to allow me to control my Insteon lighting via Indigo. I've created an applescript event that queries Indigo for a list of the devices and generates a menu. I then pass this into Remote Buddys showmenu method. Although I've found ways to kind of make this work it's not well integrated into the remote buddy menu.

My issue is that I would like to have a menu that's accessible anywhere in the RB menu's without activating the behaviour. I've tried placing my action directly into the root menu or the menu of another behaviour, however whenever I select this I can see my menu display for a brief second and then disappear. This happens above the current RB menu, which never goes away.

I've worked around this by setting up my action to trigger automatically on 'manual behaviour activation'. It's not ideal but this way I can activate the behaviour and my menu displays without any problems. In this mode I've had to add `behaviourcore accessor "triggerAutoRecognition"` at the end of my action implementation so that RB menu will revert back to the appropriate behaviour I was in. I've also found that with this configuration I can drop a behaviour activate action into a menu, rename it to whatever I want, and my new menu will display correctly no matter where I place it. I tried setting "Close remote buddy menu on action execution" but this did not work and leads me to believe that the showmenu method may have a problem.

Ideally however, I would be able to construct an action that can generate a custom menu hierarchy via applescript that could be linked directly into the RB menu wherever the action were placed, no popup showmenu. My menu is a simple controller that contains no state information. For example:

Root

Applications > * 
Audio Video > * 
Indigo > LR Track > Toggle on/off 
Turn on 
Turn off 
Dim by 
10% 
20%

etc.

LR Lamp > * 
Files > *

etc.

If I could setup RB to trigger the action on initialization and have the actionscript return the menu, RB would then treat this action as a pointer in the menuing system to the initially returned submenu. I assume with this there would be either no 'Execute on' for the action implementation or instead of 'button press' a new mode would need to be created such as 'menu initialazion' or maybe nothing at all.

Sorry if this is rambling or confused in any way, it's been a few days since I had my head deeply in this but I wanted to get a message off to see if you had any thoughts on this type of behaviour.

Thanks! 

These entries from the FAQ may be relevant to this topic:

Behaviours
Behaviours - Support for iTunes® & AirPlay®
Configuration
Hardware
Hardware - Apple® Remote