Navigator now supports converting controls to script-only stack behaviors

Geoff Canyon gcanyon at gmail.com
Wed Jan 24 14:26:44 EST 2018


I now have an alpha version of Navigator that is built entirely using
script-only stack behaviors, and it includes the function I used to do it.
You can download Navigator 5 here
<https://www.dropbox.com/s/bcqxxriwzzjcm45/navigator_5.zip?dl=1>. The full
documentation is here
<https://gcanyon.wordpress.com/navigator-documentation/#updates-for-5.0>,
but briefly:

You can highlight any controls in Navigator, including bookmarked controls,
and select Convert to Script-only Stack Behaviors on the Script menu.
Navigator will convert all the scripts of the objects you selected to
script-only behaviors, and update appropriately all the behavior settings
and stackfiles to make it work. You can select the folder you want to
create the new stackfiles in. Navigator offers to put a log of exactly what
it did in the message box, and if there are any chained behaviors included,
Navigator will include the lines of script you need to run to make them
work whenever you load the project. Navigator will optionally work on
controls with empty scripts, so you can "pre-behavior" a project before
starting to script it.

I think this is completely functional and safe to use. BUT I've only tested
on local projects that I created (including Navigator). Use at your own
risk, always work on a copy, etc., etc.

TBD:

Recursive conversion, so you can select a group, card, or stack, and just
say, "Convert everything in here."

Customizable stack names for the script-only stacks. Currently it's stack
name, control name, control id, and an index if there is a collision.

If you have any feedback or questions, let me know.

gc



More information about the use-livecode mailing list