script object again
script object again
- Subject: script object again
- From: nicolas descombes <email@hidden>
- Date: Thu, 25 Apr 2002 18:00:29 +0200
hello,
with this script :
[SCRIPT]
property maVariable : 0
on run
tell exemple to addition(2)
maVariable of exemple
end run
on dialogue(txt)
display dialog txt
end dialogue
script exemple
on addition(n)
set maVariable to maVariable + n
dialogue("Valeur de 3maVariable2 : " & maVariable)
end addition
end script
[/SCRIPT]
I note that the script object "script exemple" inherits property
"maVariable" and subroutine "dialogue". Thus, the script is the parent
script object by default of a script object. I'm wrong or right ?
thanks for your responses.
a+
Nicolas
--
Traduction frangaise de
AppleScript Language Guide 1.3.7
Tome 1 -> 6 disponibles
Sommaire giniral avec liens directs
<
http://trad.applescript.free.fr/Accueil.html>
--
_______________________________________________
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.