How can I foreground an app?

2002-04-01 Thread Victor Eijkhout
(With my apologies for that case of verbing in the subject :-) I'm writing an alarm clock. When the alarm goes off it would be nice if the app became foremost, so that the user could hit the Any Key to snooze the alarm. So how do I tell an app that's not foremost, or maybe even hidden to

Re: How can I foreground an app?

2002-04-01 Thread Ian Summerfield
For Macintosh using you store the name of your app in the variable theNameOfMyApp: Do tell application quote theNameOfMyApp quote to activate as applescript I don't think they will be a common solution to all platforms, but I could be wrong. I have a revolution program that keeps my

Re: How can I foreground an app?

2002-04-01 Thread Brad Allen
The problem here is that Applescript's activate command only works on scriptable apps. A Rev standalone doesn't have a scripting dictionary, and isn't directly Applescriptable. However, if you're using a Mac, something like this should work: tell app Finder set the frontmost of application