Open dialog infront (applescript)

Discussion in 'Mac Programming' started by gameguy3001, Apr 28, 2008.

  1. gameguy3001 macrumors member

    Joined:
    Feb 8, 2007
    Location:
    Saskatoon, SK
    #1
    I have a applescript that i created and for part of it, it displays a dialog with some options (continue, quit, etc...). The only problem is that the message appears behind any visible and active applications, in this case its iTunes. is there any way to write the "display dialog" so it will appear in from of any other windows?

    Thanks.
     
  2. lancestraz macrumors 6502a

    lancestraz

    Joined:
    Nov 27, 2005
    Location:
    RI
    #2
    You can use "current application".
    Code:
    tell current application
    	activate
    	display dialog "Hello, World!"
    end tell
     

Share This Page