Support
All support resources for our products. Here you can find answers to frequently asked questions, discuss with other users, recover a lost license code or file a support request.
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

12.09.2015 09:36:08
Is it possible to set up multiple behaviours for the same application?
View

This posting is older than 6 months and can contain outdated information.
I am currently developing a website that will be sent to a HDTV from a Mac Mini. Right now we are testing it with Global assignment on an Apple Remote. Is it possible to use a flag to tell Remote Buddy to automatically activate a behaviour change when the webpage or web app changes in Safari? In other words context switching within the same app in this case a browser without going to the menu.

Sorry if this question has been asked before. I did do a search using a number of criteria but 0 results showed up.

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

Behaviours
Hardware - Apple® Remote
User

13.09.2015 06:51:34
Re: Is it possible to set up multiple behaviours for the same application?
View

This posting is older than 6 months and can contain outdated information.
After looking further through the AppleScript dictionary of Remote Buddy and finding a script on the website that provides the identifiers for the actions I was able to cobble together a script that does the job.

The key to success turned out to be applying a different extension to each behaviour bundle identifier while retaining Safari as the application bundle identifier.

tell application "Safari"

-- make the app change 
do JavaScript "toggleApps()" in document 1

-- pick up flag 
set appLoaded to do JavaScript "appLoaded" in document 1

end tell 
tell application "Remote Buddy"

if appLoaded is "App1" then

-- change the behaviour 
behaviouraction actionIdentifier "com.iospirit.remotebuddy.behaviours.switchto.com.mycompanyname.scriptedbehaviours.safari.app1" event "pressed"

-- indicate to user that behaviour has changed and new button assignment 
behaviouraction actionIdentifier "com.iospirit.remotebuddy.menu.showmenu" event "pressed"

else if appLoaded is "App2" then

-- change the behaviour 
behaviouraction actionIdentifier "com.iospirit.remotebuddy.behaviours.switchto.com.mycompanyname.scriptedbehaviours.safari.app2" event "pressed"

-- indicate to user that behaviour has changed and new button assignment 
behaviouraction actionIdentifier "com.iospirit.remotebuddy.menu.showmenu" event "pressed"

end if

end tell

Last edited: 13.09.2015 08:56:02