Code:
repeat
tell application "System Events" to set xbmc to (name of processes) contains "XBMC"
# open XBMC if closed
if xbmc = false then
tell application "XBMC" to activate
end if
# force XBMC to be the app in focus
tell application "XBMC" to activate
delay 15
end repeatto setup: simply save the above script as an application (i saved it in /Applications/) then make it a startup item for the respective user profile.
*note: i fully realize that any user with above moderate knowledge of computers could get around this, but those aren't the users im trying to keep off other processes on this htpc.
hope this is useful to someone else out there

Search
Help