Re: trim_line problems
Re: trim_line problems
- Subject: Re: trim_line problems
- From: "Arthur J Knapp" <email@hidden>
- Date: Tue, 13 Mar 2001 11:56:59 -0500
>
From: "Sprague, Graham" <email@hidden>
>
Subject: trim_line problems
>
Date: Mon, 12 Mar 2001 12:17:34 -0500
>
I am trying to use the trim_line() subroutine included in the AppleScript
>
Help in a tell statement for BBedit. BBedit gives an error that says "BBEdit
>
cannot continue trim_line".
By default, AppleScript seems to assume that a "command" called inside
a tell statement "belongs" to the target of the tell statement. You need
to use either of the two keywords "my ..." or "... of me"
on subroutine()
-- whatever
end subroutine
tell application "Whatever"
my subroutine()
subroutine of me
end tell
To a certain degree, this is indicative of AppleScript's object-based
philosophy: your script is itself a top level "object", just like the
applications that you script.
Arthur J. Knapp
http://www.stellarvisions.com
mailto:email@hidden
Hey, check out:
http://www.AppleScriptSourceBook.com