I apologize if this has been addressed before, but I haven't seen 
anything about it.  This is giving me fits.  (Rev 1.0, Mac OS 9, G4).

1.  I have a card with 16 card fields (i.e., not in any group), each 
with simple mouseUp handler in their scripts.  I want to delete all 
of the scripts, so I create a temporary button to delete all of the 
scripts:

on mouseUp
   repeat with x = 1 to number of cd flds
     set the script of cd fld x to empty
   end repeat
end mouseUp

I run the temp button handler--no problems.  I click the fields to 
make sure their just-deleted handlers are indeed gone.  No handler 
executes.  But when I open the script editors for these fields, they 
all still have the old handler in them.  The old, deleted handler 
doesn't work, but it is STILL THERE in the script editor window.

2.  I have a card with many control objects (btns and flds) on it. 
None of these controls have anything in their scripts.  I want to 
change the entire card script to match a script of another card in 
the stack.  So I go to the card with the script I want, copy it, go 
back to the target card, open its script editor and paste, then apply 
and close the editor.  Then I check the scripts of a number of the 
control objects on the card.  THEY ALL SHOW THE SAME SCRIPT THAT I 
JUST PASTED INTO THE CARD SCRIPT!  But they all apparently work 
correctly (i.e., the message gets passed to the card.)

3.  I have several objects with short handlers in them.  I go to them 
individually and manually delete the entire script, then click apply 
and go on to the next object and do the same, and so forth until I'm 
done.  Thereafter, if I open any of these now empty scripts, then 
switch out of the script editor, a dialog appears asking if I want to 
"Apply changes to the script of button <name>?"  It doesn't seem to 
matter whether I click "yes" or "no"; this message appears for each 
of the objects with the deleted script EVERY TIME I open or close it. 
This behavior appears to magically cease upon some secret signal to 
which I am not privy.

What is going on?  Is there a capriciousScripts property that I 
accidentally set to true?  This is embarrassing when I am giving a 
demo to my students and one of these things happen, and I have NO 
EXPLANATION for it.

(Sorry for shouting.  Calming down...  Deep breaths...  I'm okay now.)

Anyone?

Devin
-- 
Devin Asay
Humanities Research Center
Brigham Young University

Reply via email to