Applescript Set Text of Label

Discussion in 'Mac Programming' started by jaikob, Feb 12, 2009.

  1. macrumors 6502

    jaikob

    Joined:
    Jul 1, 2008
    Location:
    Freeland, MI
    #1
    I am trying to make a counter, and I am trying to do something like this:

    on clicked theObject
    delay 1
    set contents of label "count" of window "step1" to "1" as text
    delay 1
    set contents of label "count" of window "step1" to "2" as text
    delay 1
    set contents of label "count" of window "step1" to "3" as text
    end clicked

    But it errors out.

    Any ideas?
     

Share This Page