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

08.06.2010 21:19:14
Visual effects via Apple Script
View

This posting is older than 6 months and can contain outdated information.
Hi there,

I want to control "Remote Buddy" from Apple Script. I understand that RB offer an API for this purpose. So I went to the Apple Script Editor, Dictionaries to have a look at the API.

Now I copy and pasted this sample to the editor and ran it:

tell application "Remote Buddy"

-- Reserve the fade engine for 5 seconds 
visualize effect "fadeReserve" for duration 5.0

-- Fade out to black in 0.5 seconds 
visualize effect "fadeOut" for duration 0.5 with color "black"

-- Hide something from the user's eye, thus "beautifying" it. Here: tell Finder to come to front 
tell application "Finder" 
activate 
end tell

-- Say something really intelligent ;-) 
say "It's really dark here"

-- Give the Finder an additional 0.5 seconds to achieve 
delay 0.5

-- Fade in from black in 0.5 seconds 
visualize effect "fadeIn" for duration 0.5 with color "black"

-- Tell the fade engine to clean up 
visualize effect "fadeCleanUp" for duration 0.0

end tell

Has far as I understand it should apply a Fade-out effect, show finder, followed by a Fade-in effect.

But in my Mac mini does nothing.

Am I doing anything wrong?

Cheers,

Nuno

Last edited: 08.06.2010 21:19:49 

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

Hardware - Apple® Remote
User

09.06.2010 13:55:11
Re: Visual effect via Apple Script
View

This posting is older than 6 months and can contain outdated information.
Thanks for asking.

Starting with Snow Leopard, it's no longer possible to message an application from within the context of another. Therefore, the AppleScript would need to be rewritten as

tell application "Remote Buddy" 
-- Reserve the fade engine for 5 seconds 
visualize effect "fadeReserve" for duration 5.0

-- Fade out to black in 0.5 seconds 
visualize effect "fadeOut" for duration 0.5 with color "black" 
end tell

-- Hide something from the user's eye, thus "beautifying" it. Here: tell Finder to come to front 
tell application "Finder" 
activate 
end tell

tell application "Remote Buddy" 
-- Say something really intelligent ;-) 
say "It's really dark here"

-- Give the Finder an additional 0.5 seconds to achieve 
delay 0.5

-- Fade in from black in 0.5 seconds 
visualize effect "fadeIn" for duration 0.5 with color "black"

-- Tell the fade engine to clean up 
visualize effect "fadeCleanUp" for duration 0.0 
end tell

Best regards, 
Felix Schwarz