Re: Newbie Progress Bar
Re: Newbie Progress Bar
- Subject: Re: Newbie Progress Bar
- From: JollyRoger <email@hidden>
- Date: Sat, 16 Dec 2000 11:21:14 -0600
on 12/14/2000 5:27 PM, Goodman, Steve at email@hidden wrote:
>
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.
It has absolutely nothing to do with calling a handler from within another
handler. You can call any handler from any other handler in a script
without using "of me". That's not the problem.
Note: In Applescript, we call them "handlers" not "subroutines".
The reason Chad was having trouble was that he was issuing the call inside
of a Finder tell block.
"of me", "tell me to", and "my" are workarounds, and will get him by in a
pinch. In effect, what that does is embed another tell inside of the Finder
tell. If he were to keep using workarounds in this script over time, one
can foresee that eventually he may have 3 or 4 levels of embedded tells in a
handler. That's not good scripting practice.
JR