Applescrpt: in need some help

Discussion in 'Mac Programming' started by rock9138, Jun 24, 2010.

  1. rock9138 macrumors newbie

    Joined:
    May 8, 2009
    #1
    I'm trying to make an applescript that a box will pop up asking for an amount of minutes. then it will set the amount of minutes entered to the delay before starting the second part of the scrpt.
    so delay = number entered

    thanx
    -Rock9138 :apple:
     
  2. ccamelot macrumors member

    ccamelot

    Joined:
    Feb 21, 2010
    Location:
    Poland
    #2
    Check this thread

    Hi, check this thread <http://macscripter.net/viewtopic.php?id=13948>. There you can find example applescript doing something similar. Hope it helps.

    Les
     
  3. Caleb531 macrumors 6502

    Caleb531

    Joined:
    Oct 17, 2009
    #3
    Here you go:

    Code:
    display dialog "Hello, world!" with title "Hello" default answer "5"
    set inSeconds to (text returned of result) * 60
    delay inSeconds
    -- start part 2 here
     
  4. rock9138 thread starter macrumors newbie

    Joined:
    May 8, 2009
    #4
    thanx that helps

    do you know away to make it so you cant use other applications wile the dialog box is open?
     

Share This Page