Re: trim_line problems
Re: trim_line problems
- Subject: Re: trim_line problems
- From: Giorgio Valoti <email@hidden>
- Date: Tue, 13 Mar 2001 21:31:20 +0100
- Organization: MMNet
"Sprague, Graham" wrote:
>
Hello All,
>
>
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". I works fine if I move the call to trim_line()
>
outside the tell statement. What good is using a subroutine if you cant call
>
to it inside a tell statement? Can anyone help or confirm that this is a
>
known bug or something?
>
Maybe you forgot to use the 'my' clause:
tell bbedit
set newLine to my trim_line(old_line) <--
end tell
on trim_line(aLine)
-- some stuff
end trim_line
HTH
--
Giorgio Valoti
Magnetic Media Network <
http://www.magneticmedia.com>
-----------------