• 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: Newbie Progress Bar
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Newbie Progress Bar


  • Subject: Re: Newbie Progress Bar
  • From: "Marc K. Myers" <email@hidden>
  • Date: Sat, 16 Dec 2000 12:05:59 -0500
  • Organization: [very little]

Steve Goodman wrote:
> From: "Goodman, Steve" <email@hidden>
> To: "'Chad Gray'" <email@hidden>, email@hidden
> Subject: RE: Newbie Progress Bar
> Date: Thu, 14 Dec 2000 17:27:51 -0600
>
> The script errors and says it does not understand my
> > UpdateGauge(). What
> > am i doing wrong? Or does anyone know of some code i can look at?
> >
>
> try this:
>
> UpdateGauge() of me
>
> or
>
> tell me to UpdateGauge()
>
> When calling a subroutine from a subroutine you have to tell AS that it is a
> part of the script hence the "of me". Should fix it for ya.

Juat to avoid more newbie confusion, the problem is not calling a
subroutine from a subroutine. The problem is calling a subroutine from
inside a "tell" block to an application. The assumption is that all
commands in a tell block are directed to that application. Hence the
error. There are three forms you can use to get around this:

UpdateGauge() of me

tell me to UpdateGauge()

tell me
UpdateGauge()
end tell

Marc [12/16/00 12:04:14 PM]


  • Follow-Ups:
    • Re: Newbie Progress Bar
      • From: JollyRoger <email@hidden>
  • Prev by Date: Re: Stay open AppleScript applet + IE 5.0 = hard crash
  • Next by Date: Re: Activer Server Pages using AS
  • Previous by thread: Re: Newbie Progress Bar
  • Next by thread: Re: Newbie Progress Bar
  • Index(es):
    • Date
    • Thread