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

Inheritance and Loaded Libraries


  • Subject: Inheritance and Loaded Libraries
  • From: David Weiss <email@hidden>
  • Date: Wed, 27 Oct 2004 17:23:25 -0700

I'm totally confused. Why doesn't this work?

I've got a 3 part AppleScript system:

Exhibit 1 - The Script Runner: An AppleScript Appliction

property XLib : missing value

on runScript(theScript)
set XLib to (load script ("Macintosh HD:Users:davidweiss:Desktop:ALib.scpt" as alias))
run theScript
quit
end runScript

Exhibit 2 - The Script Library: A Compiled Script

on runTest()
say "a Lib"
end runTest

Exhibit 3 - The Script: A text script

script myScript
property parent : application "ScriptRunner"
-- my XLib's runTest() -- fails!
-- runTest() of my XLib -- fails!
tell my XLib to runTest() -- works!
end script

tell application "ScriptRunner" to runScript(myScript)

----

Why do

my XLib's runTest()
runTest() of my XLib


both fail, but

tell my XLib to runTest()

works! This makes no sense to me. Any help would be greatly appreciated!

David Weiss
 _______________________________________________
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

  • Follow-Ups:
    • Re: Inheritance and Loaded Libraries
      • From: Axel Luttgens <email@hidden>
    • Re: Inheritance and Loaded Libraries
      • From: Paul Berkowitz <email@hidden>
  • Prev by Date: Re: open a url in camino
  • Next by Date: Re: Dice
  • Previous by thread: Re: Filemaker changes 04 to 1904
  • Next by thread: Re: Inheritance and Loaded Libraries
  • Index(es):
    • Date
    • Thread