Re: property in script object
Re: property in script object
- Subject: Re: property in script object
- From: KOENIG Yvan <email@hidden>
- Date: Tue, 29 Jun 2010 14:00:03 +0200
Le 29 juin 2010 à 12:56, Axel Luttgens a écrit :
Le 29 juin 2010 à 12:31:05, KOENIG Yvan a écrit :
Hello
Here is a behaviour which surprised me.
[...]
On pass 2, the property howto contains missing value.
So, in the script object, the property isn't persistant.
Is it the normal behaviour ?
Hello Yvan,
In your second code snippet, property "howto" belongs to the "o"
script object.
But that script object is local to the "testeur" handler, and is
thus created upon execution of that handler, and destroyed as soon
as that handler exits.
HTH,
Axel
Thanks to Axel and Shane
Given that, I will drop the script object structure.
I used it because in the true one, it works on a list. defined as a
property to fasten the beast.
As I'm now forced to use a property defined in the main script, it
seems logical to define also the list in the main script.
Yvan KOENIG (VALLAURIS, France) mardi 29 juin 2010 13:59:59
_______________________________________________
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