Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Feb 5, 2009, 03:26 PM   #1
MacKid9930
macrumors newbie
 
Join Date: Jan 2009
Location: Lawrenceville GA
Applescript Goto

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
__________________
13'' Widescreen MacBook Pro , Mac OS X Leopard v 10.5.6, 2.4 GHz, 2GB RAM, 160GB HD, 8GB iPod touch 2G, 8GB iPhone 3G, 2GB iPod Shuffle
MacKid9930 is offline   0 Reply With Quote
Old Feb 5, 2009, 09:53 PM   #2
lee1210
macrumors 68040
 
lee1210's Avatar
 
Join Date: Jan 2005
Location: Dallas, TX
Quote:
Originally Posted by MacKid9930 View Post
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
lee1210 is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
Handling Duplicate AppleScripts the Otter Mac Programming 1 Dec 22, 2010 05:53 AM
Applescript NOOB Revolume Mac Programming 2 Dec 1, 2010 08:06 AM
iTunes Resize Error AppleScript Konki Mac Applications and Mac App Store 1 Nov 21, 2010 12:47 PM
Applescript with cocoa Renmusxd Mac Programming 0 Nov 16, 2010 11:06 PM
AppleScript Application fivetoadsloth OS X 0 Nov 15, 2010 06:35 PM


All times are GMT -5. The time now is 12:04 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC