• 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: Go To Commands (AppleScript)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Go To Commands (AppleScript)


  • Subject: Re: Go To Commands (AppleScript)
  • From: Paul Berkowitz <email@hidden>
  • Date: Thu, 18 Jul 2002 12:27:55 -0700

On 7/18/02 11:49 AM, "email@hidden" <email@hidden> wrote:

> Meanwhile, you probably want to look at the use of handlers instead of GoTo's
> for your purposes:
> if x=45 then
> my LabelBlue
> end if
>
> which may be able to be written as simply as (I think):
> if x=45 then my LabelBlue

Oops, you forgot the parentheses, Marc.


if x=45 then
my LabelBlue()
end if

which can be written

if x=45 then my LabelBlue()

but here you would want:

if x > 45 then
my LabelBlue()
else if x=45 then
my Line520()
else if x< 45 and x > 0 then
my Destination1()
else
my Destination2()
end if
--
Paul Berkowitz
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Go To Commands (AppleScript) (From: email@hidden)

  • Prev by Date: Re: Creator Types in OS X...
  • Next by Date: Re: Making a repeat loop without slowing CPU
  • Previous by thread: Re: Go To Commands (AppleScript)
  • Next by thread: Determining frontmost application in OS X
  • Index(es):
    • Date
    • Thread