Searching all scripts for a card

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
phaworth
Posts: 592
Joined: Thu Jun 11, 2009 9:51 pm

Searching all scripts for a card

Post by phaworth » Mon Aug 17, 2009 6:36 pm

I have a need to search through all the scripts on a card and replace a word with another. I found a stack named Script Reporter that claims to display all the scripts for an application but doesn't allow any editing or searching. Not entirely sure about that because it hung when I pointed it to my application.

Can anyone recommend an existing solution to this or point me in the right direction to write my own script.

Thanks,
Pete

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4171
Joined: Sun Jan 07, 2007 9:12 pm

Post by bn » Mon Aug 17, 2009 8:53 pm

Pete,

in the editmenu the last option is find and replace. There you choose where to search, e.g. this stack. (default is "current selection" I think)
Than you select what to search at the right side and make shure the only selection is script.
than you enter your search term and you will see a list with the hits. Try with the word "on" for example to get some hits.
Double-clicking on an entry in the list will open the script.
regards
Bernd

phaworth
Posts: 592
Joined: Thu Jun 11, 2009 9:51 pm

Post by phaworth » Mon Aug 17, 2009 9:14 pm

Thanks a lot, that's exactly what I need!
Pete

Post Reply