Applescript Goto

Discussion in 'Mac Programming' started by MacKid9930, Feb 5, 2009.

  1. macrumors newbie

    MacKid9930

    Joined:
    Jan 21, 2009
    Location:
    Lawrenceville GA
    #1
    In Visual Basic you can use the goto command to jump to a label later in the code, and jump around. What i want to know is are there and equivalents in applescript? Thanks
     
  2. macrumors 68040

    lee1210

    Joined:
    Jan 10, 2005
    Location:
    Dallas, TX
    #2
    There are control structures like if-then-else that are available for conditional code execution:
    http://applescript.wikia.com/wiki/If_Then_Else

    There are also subroutines:
    http://www.apple.com/applescript/sbrt/index.html

    You should be able to use these to handle whatever you'd like to do.

    -Lee
     

Share This Page