How to get rid of a front script

Scott Rossi scott at tactilemedia.com
Wed Nov 13 14:40:43 EST 2013


Hi Ruedger:

Each line in the list you received is an object whose script is currently acting as a frontScript.  If you script something like "put the short name of (line 1 of the frontScripts)" you will get the name of the button that appears in the first line of the frontScripts list.

You say you deleted the button that contained your original frontScript.  If this is really the case, it should be impossible for the script of that button to be operating for two reasons: the script isn't around anymore, and frontScripts are not persistent between launches.  You have to insert frontScripts for them to be used.

Perhaps you had multiple buttons named "btTest" or you have another object that contains the test script.  Checking which frontScripts are loaded will show you.

Regards,

Scott Rossi
Creative Director
Tactile Media, UX Design

On Nov 13, 2013, at 10:31 AM, "Ruediger Wilhelm" <wilhelm.forchheim at freenet.de> wrote:

> Scott,
> 
> the problem is, the button to remove the script from does not exist any
> more.
> 
> "put the frontScripts" shows a List of paths:
> 
> button id 1117 of group id 1016 of card id 1002 of stack "C:/Program
> Files/RunRev/LiveCode 6.1.2/Toolset/revlibrary.rev"
> button id 1116 of group id 1016 of card id 1002 of stack "C:/Program
> Files/RunRev/LiveCode 6.1.2/Toolset/revlibrary.rev"
> button id 1042 of card id 1002 of stack "C:/Program Files/RunRev/LiveCode
> 6.1.2/Toolset/revlibrary.rev"
> stack "C:/Program Files/RunRev/LiveCode 6.1.2/Toolset/revdebugger.rev"
> 
> What could I do with it?
> 
> Ruedger
> 
> 
> 
> -----Original Message-----
> From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf
> Of Scott Rossi
> Sent: Mittwoch, 13. November 2013 18:59
> To: How to use LiveCode
> Subject: Re: How to get rid of a front script
> 
> I believe you want something like "put the frontScripts" which will list all
> frontScripts in the message box.
> 
> Also, to remove a frontScript, you use:
>  remove script of button "xyz" from front
> 
> Regards,
> 
> Scott Rossi
> Creative Director
> Tactile Media, UX Design
> 
> On Nov 13, 2013, at 9:46 AM, "Ruediger Wilhelm"
> <wilhelm.forchheim at freenet.de> wrote:
> 
>> This again is the beginner's hope for help.
>> 
>> For test purposes I created my first front script.
>> 
>> I put the following script Into the button "btTest":
>> 
>> on enterKey
>>   answer "You came via the front script" with OK
>>   go to card "myCard2"    
>> end enterKey
>> 
>> In a field on the same card I put the following:
>> 
>> on returnInField
>>      --some code her
>>     set the disabled of button "btLogin" to false
>>        insert script of button "btTest" into front
>>   focus on button "btLogin"
>> end returnInField
>> 
>> Later I learned about the property "default" of buttons,
>> which does what I tried to reach with the above front script.
>> So I deleted the button "btTest" and the insert script ... in
>> the field. But this did not destroy the function of the 
>> front script.
>> I closed and removed the stack from memory;
>> I restarted LiveCode (6.1.2 commercial);
>> I restarted the PC (Windows Vista).
>> 
>> Is there a way to see the effective frontscripts of a stack?
>> 
>> Thanks in advance for any hints.
>> 
>> Ruediger
>> 
>> 
>> 
>> 
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 




More information about the Use-livecode mailing list