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

Similar Threads
thread Thread Starter Forum Replies Last Post
iMac won't goto sleep tapping power button (10.9.2) MrMister111 OS X Mavericks (10.9) 4 Mar 15, 2014 06:05 AM
FCP X goto next/previous marker BROKEN? Freida Digital Video 2 Mar 7, 2014 04:03 PM
AppleScript: How do I save multiple Excel sheets to one pdf using Applescript sbtaylor1 Mac Programming 0 Oct 28, 2013 11:38 PM
GoTo Meeting Starts and automatically closes skygremlin OS X 10.8 Mountain Lion 1 Nov 12, 2012 05:27 PM
Are you going to pre-order or goto a store on release day? iMas70 iPad 19 Oct 26, 2012 09:34 AM

Forum Jump

All times are GMT -5. The time now is 12:48 PM.

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

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