1. Welcome to the new MacRumors forums. See our announcement and read our FAQ

Applescript - Time limit on display dialogs

Discussion in 'Mac Programming' started by dryJ, Jun 2, 2009.

  1. macrumors newbie

    #1
    Is there a way to put a time limit on a display dialog, so if I don't hit "OK", it will disappear after, say, 30 seconds?

    This is my display stuff, fairly basic :p
    Code:
    display dialog message_en1 buttons "OK" default button "OK"
     
  2. macrumors 65816

    mysterytramp

    #2
    This will work:

    Code:
    display dialog "Hello, World!" giving up after 10
    
    10 is for seconds

    mt
     
  3. macrumors newbie

    #3
    Thanks for the help.
     

Share This Page