• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Property immutability
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: Property immutability (From: julifos <email@hidden>)

  • Prev by Date: Re: New scripter Q: calling upon a generic file name?
  • Next by Date: Re: click "OK" button
  • Previous by thread: Re: Property immutability
  • Next by thread: open files in a folder and in that folder's subfolders
  • Index(es):
    • Date
    • Thread