Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

MacBook MH

macrumors member
Original poster
Mar 7, 2009
76
0
Hi,
I want the dialog box to always show up on the front/on the top, not behind all the windows I have opened. I need this in AppleScript. I there a command like this?
PLZ Help, I need it as fast as possible
THX, bye
 

mysterytramp

macrumors 65816
Jul 17, 2008
1,334
4
Maryland
activate will bring a specific application to the front, then call the dialog and the dialog and the dialog should be in the front.

Code:
tell application "Whatever"
     activate
     display dialog "Hello, world!"
end tell

If that doesn't work, please post a code snippet of what's not working.

mt
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.