Set a dialog box always to show up on front/top AppleScript

Discussion in 'Mac Programming' started by MacBook MH, May 31, 2009.

  1. macrumors member

    Joined:
    Mar 7, 2009
    #1
    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
     
  2. macrumors 65816

    mysterytramp

    Joined:
    Jul 17, 2008
    Location:
    Maryland
    #2
    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
     

Share This Page