Re: Re: Running a script library from within Filemaker Pro 6
Re: Re: Running a script library from within Filemaker Pro 6
- Subject: Re: Re: Running a script library from within Filemaker Pro 6
- From: Jim Skibbie <email@hidden>
- Date: Tue, 20 May 2008 17:15:35 -0500
- Thread-topic: Running a script library from within Filemaker Pro 6
Title: Re: Re: Running a script library from within Filemaker Pro 6
Below might be a better example.
The variable foo is set as a property, but it errors when it is called as part of the “ThisScript” even though it is defined in the main script.
I guess my question is mainly regarding variables passing from one script to the next.
It looks like the handler defined in one script can be called in another, but the property doesn’t seem to transfer it’s values/existence in the same fashion.
Thanks.
Jim
Main script:
property foo : "mainvalue"
--global foo
set foo to "mainvalue"
set ThisScript to load script (alias "Macintosh HD:Users:schawk:Desktop:ThisScript.scpt")
set ThatScript to load script (alias "Macintosh HD:Users:schawk:Desktop:ThatScript.scpt")
tell ThatScript to run
set x to ThisScript's thisresult(" World")
This script:
--property foo : "thisvalue"
on thisresult(x)
set y to "Hello World " & x & foo
return y
end thisresult
That script:
--property foo : "foo"
on run
set z to ThisScript's thisresult("Hello")
set z to z & " " & foo
activate
display dialog z
end run
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden