Re: scope property, parent, load script
Re: scope property, parent, load script
- Subject: Re: scope property, parent, load script
- From: Emmanuel <email@hidden>
- Date: Tue, 29 Apr 2003 00:23:54 +0200
At 10:25 PM +0200 28/04/03, julifos wrote:
Script 1, an applescript-studio application:
#####################
kaka's setKaka_s_Var()
to whatever()
return my kaka's var
end whatever
script kaka
global var
to setKaka_s_Var()
set var to "pepe"
end setKaka_s_Var
end script
#####################
Script 2, external applet:
#####################
set k to (load script alias "path:to:Script 1")
display dialog (k's whatever())
#####################
Error I receive when running this applet (after running "Script 1"): "Can't
get var"
Is there any way to retrieve kaka's var value?
You ran Script 1, but did you save it before loading it in Script 2?
As I understand it, you ran one instance and you probed another one.
Emmanuel
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.