That's a nice idea about the warnings. On Sun, Jan 21, 2018 at 3:30 PM, Monte Goulding via use-livecode < use-livecode@lists.runrev.com> wrote:
> Cool, scriptifier was/is just a tool I wrote because it took about the > same about of time to write as to tediously scriptify a stack so I thought > it would be a win in the end. If anyone is keen to make it more robust or > start from scratch then have at it. FWIW it would probably be a good idea > to check scriptified scripts for the conditional messages that are only > sent if an object has them (idle, mouseStillDown etc) and warn about > scriptifying those. We got caught with idle in an old script in an IDE > stack once. > > Cheers > > Monte > > > On 21 Jan 2018, at 6:28 pm, Geoff Canyon via use-livecode < > use-livecode@lists.runrev.com> wrote: > > > > At a fundamental level (unless I'm misreading it) Scriptifier parses a > > whole stack and looks for objects with a script and no behavior, and > turns > > them into an object with no script and a script-only stack behavior. > > Navigator will work on whatever controls you tell it to, and will look > for > > objects with a script and no behavior, and turn them into an object with > no > > script and a script-only stack behavior, but it will also find objects > with > > a button behavior (that does not itself have a behavior), and create a > > script-only stack with that button's script, and set those objects' > > behavior to the resulting stacks (and the original button, so if there > are > > unconverted controls, they'll still work. I'm definitely going to have to > > add an "and enclosed controls" option in Navigator. There are several > other > > differences, as there always will be when two different people look at a > > problem. > > > > On Sat, Jan 20, 2018 at 11:01 PM, Geoff Canyon <gcan...@gmail.com> > wrote: > > > >> I built my own, for several reasons, among them: > >> > >> 1. In the context of Navigator, I needed to support creating stack > >> behaviors for an arbitrary collection of controls, rather than recursing > >> through a stack. > >> 2. I figured that Monte and I would approach the task differently, and > we > >> did on several fronts. > >> 3. I thought it would be fun to code. (and it was, I royally borked my > >> first implementation in the product definition phase) > >> > >> I just ran my first test, and it seems to be working. > >> > >> I'm going to build some more tests for it, then release it with stern > >> warnings that anyone using it on a non-backed-up project is foolish, > and I > >> am not responsible for the horrible things they do with it. It should be > >> available sometime tomorrow. > >> > >> gc > >> > >> On Sat, Jan 20, 2018 at 7:16 PM, Mike Kerner via use-livecode < > >> use-livecode@lists.runrev.com> wrote: > >> > >>> Dumb question, Geoff, are you going to embed/call Scriptifier to > achieve > >>> that or are you going to do something else? > >>> > >>> On Sat, Jan 20, 2018 at 8:25 PM, Geoff Canyon via use-livecode < > >>> use-livecode@lists.runrev.com> wrote: > >>> > >>>> I get that it can be done, I just hesitate to start monkeying with > >>> people's > >>>> scripts like that in Navigator (which is going to have a conversion > >>>> function in the next update). For now I'm thinking that I just skip > >>>> anything with chained behaviors, unless someone has a better > suggestion. > >>>> > >>>> On Sat, Jan 20, 2018 at 5:15 PM, Trevor DeVore via use-livecode < > >>>> use-livecode@lists.runrev.com> wrote: > >>>>> > >>>>> For now I just set the chained behaviors for any script only stacks > >>> that > >>>>> require them when the app starts up. Not ideal, but worth it in order > >>> to > >>>>> manage the scripts with source control. > >>>>> > >>>>> > >>>> _______________________________________________ > >>>> 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 > >>>> > >>> > >>> > >>> > >>> -- > >>> On the first day, God created the heavens and the Earth > >>> On the second day, God created the oceans. > >>> On the third day, God put the animals on hold for a few hours, > >>> and did a little diving. > >>> And God said, "This is good." > >>> _______________________________________________ > >>> 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