This posting is older than 6 months and can contain outdated information.
Hello James,
thanks for asking!
Remote Buddy right now doesn't have any documentation beyond the
information you can find on the Remote Buddy website. I plan to have
a documentation in place for the final 1.0 release, when the user
interface and feature set has stabilized. But for now, the whole
development is too fast paced and dynamic as that a documentation
would truely make sense - it would be immediately outdated :-)
Regarding your mail behaviour:
1) You might simply try using the Exposé / Virtual keyboard actions
the respective Behaviours are exposing globally to achieve that.
2) You may want to iterate over the "message viewer" objects'
"window" property and compare their ids with the id of the frontmost
window. If you find a match, modify its "visible" attribute, else do
nothing. You could also use the "index" property of the windows to
determine which is front most.
Something like this:
tell application "Mail"
set msgCnt to count of message viewer
set msg to 1
repeat until msg > msgCnt
set aWindow to window of message viewer msg
-- Perform comparisons here ..
set msg to msg + 1
end repeat
end tell
I'm not an AppleScript expert, so maybe someone else in the forum can
provide you with a more elegant solution ;-)
Best regards,
Felix