Applescript - Time limit on display dialogs

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

  1. macrumors newbie

    Joined:
    Oct 12, 2008
    #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

    Joined:
    Jul 17, 2008
    Location:
    Maryland
    #2
    This will work:

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

    mt
     
  3. thread starter macrumors newbie

    Joined:
    Oct 12, 2008

Share This Page