Message: 4

Message: 4
Date: Sat, 9 Mar 2002 16:14:08 -0800
From: David Brown Subject: Re: Grep contents of Radio.root?

There are three techniques that I use CONSTANTLY for digging things out of Radio.

First there’s the Jump command. cmd/ctrl-J brings up a dialog that lets you type in a database address. Hitting Return/Enter will then open up a window with the contents of that database entry.

If you Jump to workspace.userlandSamples, you’ll see a bunch of useful scripts. The one I use the most is “findString”. So open up findString, and hit the ‘Run’ button. Type in the string you are looking for and hit return. It will open up an outline that lists the results. When it’s finished, cmd/ctrl-doubleclicking on each line will jump to that location in the database, so you can then look and see how the string is referenced.
This combination of using findString and then cmd-clicking on the results is so useful that I create a bookmark pointing at the routine.

So with those three techniques:

1. Jump
2. workspace.userlandSamples.findStirng
3. cmd/ctrl-2click to jump to a definition

…you can learn about almost anything in the database. Cmd-2clicking works anywhere, so I use it to read code. You bring up the script editor, and then if you are unsure what a particular command does, you cmd-2click on it and read the source.

This entry was posted in My Interests. Bookmark the permalink.

Leave a Reply