scope property, parent, load script
scope property, parent, load script
- Subject: scope property, parent, load script
- From: julifos <email@hidden>
- Date: Mon, 28 Apr 2003 22:25:26 +0200
Hi all!
This is a cool puzzle for gurus.
Condition: I can rewrite the code to make it work, but I won't do it, since
I'm interested in this puzzle, which HAS a logical solution.
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?
JJ
_______________________________________________
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.