On Sun, 16 Dec 2007 14:33:25 -1000, Sivakatirswami wrote:

> My little Kiosk app (Mac OSX) is coming along nicely.. at one point 
> we invoke Safari to let the users sign up for web newsletters... 
> Safari comes to the front.
> 
> Can I have a "send in 10 minutes" that will bring Revolution back up 
> as the front most application?
> 
> If so, how exactly do we do that?  Infact I want to actually close 
> Safari's Top window (so that the next user comes into Safari with a 
> default page)   I suppose that will require a touch of applescript.
> (of which I know virtually zero)

Funny you should ask that! I was just doing that very same thing 
myself. Here you go:

-- put this somewhere
send "ActivateMe" to me in 10 minutes


on ActivateMe
   put "MyKioskApp" into myAppName  -- note no ".app"
   put "tell application" && quote & myAppName & quote & cr & \
     "activate" & cr & "end tell" into tScript
   do tScript as AppleScript
end ActivateMe

HTH,

Ken Ray
Sons of Thunder Software, Inc.
Email: [EMAIL PROTECTED]
Web Site: http://www.sonsothunder.com/
_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to