Re: Property immutability
Re: Property immutability
- Subject: Re: Property immutability
- From: Paul Skinner <email@hidden>
- Date: Fri, 28 Feb 2003 09:53:52 -0500
On Friday, February 28, 2003, at 06:43 AM, julifos wrote:
snip
Ok, I run this repeatedly in the editor and all is fine. I run it as
an application and the property lastSaverlaunched never gets modified
when the action is "Change Saver". The saver is changed, but the
property doesn't change, so the previous server isn't killed. Why?
Hmmm... Not pretty sure, but seems that lastSaverlaunched is good.
If you append these lines to the end of your code:
try
display dialog (lastSaverlaunched as text)
end try
try
display dialog (previousSaverPID as text)
end try
You'll see that lastSaverlaunched is correctly updated. Your problems
is
previousSaverPID. These are my results after running it several times:
lastSaverlaunched previousSaverPID
1175 nope
1194 1175 --> ok, was lastsaverlaunched
1217 1175 --> BAD!
1239 1217 --> ok
1262 1217 --> BAD!
This serie is allways {initialize, good, bad, good, bad, good, bad...}
Very interesting! ;-) Not funny, but so interesting...
JJ
Thanks Julifos,
It was indeed the previousSaverPID. I failed to dereference it upon
assignment. Ahhhh... simple problem solved. I really appreciate your
looking at this!
Paul Skinner
_______________________________________________
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.