• 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: Inheritance and Loaded Libraries
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Inheritance and Loaded Libraries


  • Subject: Re: Inheritance and Loaded Libraries
  • From: Paul Berkowitz <email@hidden>
  • Date: Thu, 28 Oct 2004 08:32:27 -0700

On 10/28/04 2:26 AM, "has" <email@hidden> wrote:

> To have Script Runner run a copy of myScript while giving that script
> direct access to its own state - which is what I assume you want to
> do - use the following solution:

But he already has a solution, has. Have you read David's message carefully?
He was not asking for a "solution". He has come up with an unusual situation
where calling a handler in a loaded script by 'tell loadedScript to
runHandler()' works but 'loadedScript's runHandler()' doesn't. And he'd like
to know why.

The easy answer is that 'load script' must be somewhat unusual - buggy
perhaps, such that one method works and the other doesn't when they are
meant to be synonymous. I think probably only an Apple AppleScript engineer
would know how that has come about. As I said, in all other contexts I know
of, both methods work.

That's not to say that there may not be other and maybe better ways got
David to do what he wants. This is AppleScript, after all. ;-) This is
obviously a boiled-down example of a complex setup. You may have given him a
technique that will ultimately work better for him. And it does look as if
he has assumed there are some features of AppleScript which don't belong to
it along the way. But his 'tell loadedScript to runHandler()' method is
already working. The question was why doesn't 'loadedScript's runHandler()'
work.



--
Paul Berkowitz


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: Inheritance and Loaded Libraries (From: has <email@hidden>)

  • Prev by Date: Re: How to find current user?
  • Next by Date: Re: Filemaker changes 04 to 1904
  • Previous by thread: Re: Inheritance and Loaded Libraries
  • Next by thread: Re: Inheritance and Loaded Libraries
  • Index(es):
    • Date
    • Thread