script trouble on OS X

Klaus Major klaus at major-k.de
Thu Jul 3 11:34:00 EDT 2003


Hi Klaus,

>> Hi folks,
>>
>> i have a little script that works very fine on win,
>> but always throws an error on OS X...
>> Can someone please help out?
>> I have a popup btn where one can delete the current cd
>> in a stack. One menu is "loeschen" (delete) and this handler
>
> important additional info:
>
> The button is part of a bg and NOT part of the card that i try to 
> delete.
>
>> on loeschen
>>   answer "do you really want ..." with "Ja" or "Nein"
>>   if it is "Nein" then exit loeschen
>>    if the short name of this cd <> "menu" then delete this cd
>>    akt ## creates a new index
>>    save this stack ## well, does what it says...
>> end loeschen
>>
>> i get this error on OS X
>>
>> stack locked or object's script is executing
>>
>> at "...delete this cd"
>>
>> I can delete the card with the msg AND that SAME script works
>> fine on windows2000...
>>
>> The stack was created on Windows and copied over to my mac.
>> Everything worked fine, of course, except this "delete" handler.

This is a mistrey indeed.

> Any hints are still very welcome :-)

i can offer no hint but a working workaround ;-)

...
  put the num of this cd into dn
   if the short name of this cd <> "menu" then send loesch to me in 1 ##
end loeschen

on loesch
   delete this card
   akt
   save this stack
end loesch

Works fine on X and win.

But don't know why the first scripts works on win and not on X!???

> Regards
>
> Klaus Major
> klaus at major-k.de
> www.major-k.de

Hope that helps ;-)


Regards

Klaus Major
klaus at major-k.de
www.major-k.de




More information about the use-livecode mailing list