• 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: trim_line problems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Can anyone explain Word behavior???
  • Next by Date: Re: Detect an URL
  • Previous by thread: Re: trim_line problems
  • Next by thread: RE: trim_line problems
  • Index(es):
    • Date
    • Thread