You can use property variables in an external script
e.g. a.scpt:
property foo : "hello world"
... and in the calling script, you use the "x of n" link style.
set test to (load script "/tmp/a.scpt") display dialog (the foo of test)
You can also access the returned handler result in an external script.
e.g. a.scpt:
on getChoice() set res to choose from list {"one fish", "two fish", "red fish", "blue fish"} return res end getChoice
... and in the calling script:
set choice to getChoice() of test
source share