Find Replace in Script Editor with cr
Brian Milby
brian at milby7.com
Mon Apr 5 11:56:50 EDT 2021
If using Atom would be helpful for your task, then ScriptTracker could facilitate that:
https://github.com/bwmilby/scriptTracker
It exports all of the scripts of a stack to files and can watch that directory for changes and automatically import the changes back into the stack. (I would be curious at the performance on a project that large.)
Another option would be to use the code from button 1003 as inspiration to write a script that would make your change in all scripts in a stack (thinking of the logic that I used to get to every script of a stack without going into shared objects more than once).
I know you didn’t want to deal with doing it in code, but just wanted to offer a possibility.
Thanks,
Brian
Sent from my iPhone
> On Apr 5, 2021, at 11:44 AM, Sean Cole (Pi) via use-livecode <use-livecode at lists.runrev.com> wrote:
>
> No. I mean using the find/replace tool panel of the script editor to insert
> line feed characters to create a new line.
>
> For instance, suppose I have multiple commands on one line separated by ;
> and I want to search for semicolon and replace with semicolon followed by
> return character to drop the remaining script onto a new line. That kind of
> thing. It’s just easier than taking the whole script and pasting into
> another text editor to do the same operation. With 17,000 scripts to go
> through, it’s a bit tedious doing it by copy paste fix copy paste all the
> time.
>
>> On Mon, 5 Apr 2021 at 15:22, Craig Newman via use-livecode <
>> use-livecode at lists.runrev.com> wrote:
>>
>> Of course you have to extract the script first (it is a property) then
>> work it, then reset the property/
>>
>> Craig
>>
>>> On Apr 3, 2021, at 1:43 PM, Sean Cole (Pi) via use-livecode <
>> use-livecode at lists.runrev.com> wrote:
>>>
>>> Hi all,
>>>
>>> Just wondering if there is a way of replacing using cr in the
>> find/replace
>>> panel of the script editor. For example, I have a lot of instances in my
>>> inherited code that has 'then put' ... that I want to put over two lines
>>> and then, if necessary add an end if later on. Is there a way to insert a
>>> cr between 'then' and 'put' from the panel? It would be useful to know
>> for
>>> other things too.
>>>
>>> Cheers
>>>
>>> Sean
>>> _______________________________________________
>>> 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
>>
> --
> Pi Digital
> _______________________________________________
> 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