I assumed we were getting the script first, so this implied the process of getting the script, putting cr & the newscript after it, and then setting the script to it. Sorry for the confusion.
Bob On Feb 29, 2012, at 8:14 AM, Richmond wrote: > On 02/29/2012 06:06 PM, Bob Sneidar wrote: >> I would say AFTER in case there is something there already, and I would put >> cr& field "NEWSCRIPT" to make sure you are not putting anything on the same >> line as the last line of a script. > > Well, as I pointed out a couple of hours ago; one should use SET rather than > PUT; because Craig, rightly, prodded me > for being a bit goofy and forgetting that a script is not like a field. > >> Bob >> >> >> On Feb 29, 2012, at 12:24 AM, Richmond wrote: >> >>> On 02/29/2012 05:59 AM, Cal Horner wrote: >>>> Over the years I have created a lot of plug-ins. Some templates are for the >>>> interface and many templates are for scripts. An example would be the >>>> ask/answer dialog template. >>>> >>>> I have always cut and pasted the scripts into the script editor. Simply >>>> because I didn't have the knowledge(expertise) to insert the code by >>>> program >>>> >>>> >>>> My question is can I place the generated code into the script editor, by >>>> program. >>>> >>>> If it is possible, How is it done. Any examples? >>>> >>>> Thanks >>>> >>>> Cal >>>> >>> Surely all one has to do is something like this: >>> >>> put fld "NEWSCRIPT" into the script of button "BLAH" >>> >>> of course it is probably hardly worth it as you would have >>> to import the script from a text file into a fld, and by the time you've >>> done that and the script it is probably just as time consuming as >>> cutting-and-pasting the >>> text yourself. >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode@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@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@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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode