Inheritance and Loaded Libraries
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