Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

MacKid9930

macrumors newbie
Original poster
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
 
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

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
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.