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

Applescript Set Text of Label

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

  1. macrumors 6502

    jaikob

    #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