This posting is older than 6 months and can contain outdated information.
Okay, I've looked into this some more, and it is indeed very well-done. And I have a couple more questions (of course):
1) So I can navigate Applescript lists using RB's UI by running a script from outside RB and using the command
tell application "Remote Buddy"
showmenu .....
end tell
But, when navigating that menu, going up and down is not as smooth, and does not accerelate, as when navigating the real RB menu. Any idea why? It would be great if this were improved.
2) Due to the above limitation, it would be preferable to call such a script as an action in the actual RB menu. But then I run into hierarchy problems. For instance: by running a script from outside RB, I can do the following (note, this is not real Applescript code, it just simulates what the code would do):
tell application iTunes
...set _TVshows to show of (tracks of library whose genre is tv shows)
end tell
tell application Remote Buddy
...showmenu with items _TVshows with return value
...set show_name to result
end tell
tell application iTunes
...set _episodes to name of (tracks of library whose show is show_name)
end tell
tell application Remote Buddy
...showmenu with items _episodes with return value
...set episode_name to result
end tell
tell application iTunes
...play episode_name
end tell
That would generate successive menus, each of which would depend on the result of the prior one. If I understand the showmenu Applescript command for RB, this cannot be done from within RB, because all sub-menus must be contained within the brackets of the showmenu variable.
Is that correct? Is is not possible to create sub-menus based on a variable returned as the result of a higher menu? Or is my understanding of Applescript and RB unsophisticated enough (I admit I am an amateur) that I just cannot see it?
Last edited: 06.05.2007 02:26:25