Hi there,
I am working on a Mac Mini serving as a Media Center using Front Row and EyeTV. I use a script that lets the user decide whether it should take the Mini to sleep after a recording is done or not. This works well. Unfortunately it doesn’t work with the Apple Remote (the Hardware Remote). Normally the user does not have anything else to control the Mini so I need to get the script listening to Apple Remote Keystrokes. Is there a possibility to get this functionality in Applescript without to much harassment? Are there other free ways?
Answer please as detailed as possible as I am not a Pro.
My Script so far:
on RecordingDone(recordingID)
tell application "EyeTV.app"
delay 60
if is_recording = false then
activate
set answer to display dialog "Let Mini go to sleep?" buttons {"No", "Yes"} default button "Yes" giving up after 30
if button returned of answer = "Yes" or button returned of answer = "" then
tell application "Finder"
sleep
end tell
end if
end if
end tell
end RecordingDone
System is 10.5.8
Thanks a lot!
Best wishes
RaGob66