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

03.05.2007 15:35:01
Re: maybe a bug, maybe not

This posting is older than 6 months and can contain outdated information.
Hello Silas,

thanks for asking.

AppleScript is not threadsafe. Thus, it can't be executed 
asynchronously and Remote Buddy will only execute the next action 
once the previous one has finished.

This is also important as only this way the user is able to rely on 
an action to be finished before the next action is executed.

I.e. if you write a script to switch an application to a different 
mode and then use keystrokes to command in that mode - but keystroke 
that do something entirely different / unwanted, if not in the right 
mode - it could easily happen that the AppleScript needs longer to 
compile and execute than it needs to send the keystrokes, triggering 
different actions.

Keyspan's software uses a seperate process to execute AppleScript. 
This consumes additional memory and you can easily run into the kind 
of problems as mentioned above.

If you need a menu to select from, there's a much easier way to 
achieve this - especially without having to map several buttons to 
keycodes and such: Remote Buddy provides its own AppleScript command 
to open (hierarchical) menus that you can navigate with the remote. 
Please have a look at Remote Buddy's AppleScript dictionary in Script 
Editor.app for sample code. It's a clean design and really easy to use.

Best regards, 
Felix 

Thread-display::