• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to do a goto with Applescript?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to do a goto with Applescript?


  • Subject: Re: How to do a goto with Applescript?
  • From: "Mark J. Reed" <email@hidden>
  • Date: Sun, 2 Jan 2011 12:42:06 -0500

I recommend Dijkstra's famous letter/rant "Goto statement considered
harmful" (http://www.cs.utexas.edu/users/EWD/ewd02xx/EWD215.PDF).
Programming was very different in 1968, but the basic premise still
holds; structured programming is the way to go.  If you posted real
code instead of a generic example, we might be able to suggest the
best approach for your particular use case.

On Sunday, January 2, 2011, Michelle Steiner <email@hidden> wrote:
> On Jan 2, 2011, at 7:39 AM, Robert Poland wrote:
>
>> Thanks André and Michelle,
>>
>> I guess that's sort of what what I was doing, just thought there might be a better way.
>
> Actually, this is the better way.  GOTO leads to spaghetti code which can become hard to troubleshoot.
>
> Also GOTO requires line numbers and/or line labels, and Applescript has neither.
>
> -- Michelle
>
> --
> Windows Vista: Viruses, Intrusions, Spyware, Trojans, and Adware.
>
>
>  _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> AppleScript-Users mailing list      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> Archives: http://lists.apple.com/archives/applescript-users
>
> This email sent to email@hidden
>

--
Mark J. Reed <email@hidden>
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: How to do a goto with Applescript?
      • From: Robert Poland <email@hidden>
References: 
 >How to do a goto with Applescript? (From: Robert Poland <email@hidden>)
 >Re: How to do a goto with Applescript? (From: André Renault <email@hidden>)
 >Re: How to do a goto with Applescript? (From: Robert Poland <email@hidden>)
 >Re: How to do a goto with Applescript? (From: Michelle Steiner <email@hidden>)

  • Prev by Date: "partially retrieve messages" in Outlook
  • Next by Date: Re: How to do a goto with Applescript?
  • Previous by thread: Re: How to do a goto with Applescript?
  • Next by thread: Re: How to do a goto with Applescript?
  • Index(es):
    • Date
    • Thread