Updated: 1/7/2005; 6:02:22 PM.
 

Home
Rod Kratochwill's Weblog
Remembering
Cynthia Ann Jones Kratochwill 1957 - 2002
        

Sunday, March 10, 2002

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.
7:24:31 PM    


© Copyright 2005 Rod Kratochwill.

 

March 2002
Sun Mon Tue Wed Thu Fri Sat
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31            
Feb   Apr





_______________






Click here to visit the Radio UserLand website.

Click to see the XML version of this web page.

Click here to send an email to the editor of this weblog.
send me an email