Category: Radio Tips

Phil wrote, “No arrays in UserTalk?”

We have arrays. We call them lists. Here’s a list of integers:

{1, 2, 3, 4, 5}

You can add lists together if you want:

{1, 2, 3} + {4, 5} == {1, 2, 3, 4, 5}

You can reference them by index:

local (aList = {1, 2, 3});<br /> aList[2] = 4;

After running the above, aList will contain {1, 4, 3}.

You can also mix types:

{1, "two", 0x03}

And you can nest lists:

nestedList = {1, 2, {3.0, 3.5}, 4}

In the above example, nestedList[2][1] has a value of 3.0.

Jake's Radio 'Blog Radio Tips

Comments closed

Gartk Kidd: “I used to be phytoplankton. Now I’m either big phytoplankton, or krill. Either way, I’m whale-food. :)”

Garth: Brent has written up a bunch of tips for Frontier developers, most of which apply to Radio as well. This one in particular may be of use to you.

Jake's Radio 'Blog Radio Tips

Comments closed

David Davies asked me earlier today, how to get the path to a local file, given the URL for its upstreamed and rendered version. Here’s a code-snippet that does it:

That will work fine for an image file, but if you need the path to a rendered file. If you need to convert an .html url back to the correct filepath. Add this extra step:

radio.file.locateFileIgnoringExtension (f, @f);

Jake's Radio 'Blog Radio Tips

Comments closed

At Dave’s request, I started a new category for documenting my ongoing Radio development work. It’s rendered in HTML here, and you can subscribe to it by clicking this link.

Jake's Radio 'Blog Macros Radio Development Radio Tips

Comments closed

New Radio 8 feature. Now you can post to categories without posting to the home page. If you have categories enabled, there’s a new checkbox, the first one, called Home Page (it effectively becomes a category). By default it’s checked. Now you can easily publish multiple weblogs, going to lots of different locations, from one edit box. Screen shot. [Scripting News]

Jake's Radio 'Blog Radio Tips

Comments closed

Garth wants to know if it’s still possible to open a Manila site in the outliner in Radio 8.0.

It is. Bring the Radio application to the front, and choose File->Open Manila Site, and then type your Manila site’s URL.

Jake's Radio 'Blog Radio Tips

Comments closed

Here’s a tip for Radio Users: Say for whatever reason, your www folder was deleted. Now deleting your www folder is a Bad Idea, but some people have misunderstood how the software works, and deleted the www folder, in an attempt to “start over”. I won’t name any names.

Here’s how to get a new www folder:

1) Bring the Radio application to the front, and choose Tools->Developers->Quick Script, to open the Quick Script window.

2) Copy the following script and paste it into the Quick Script window, and then click the Run button:

That’s it!

Jake's Radio 'Blog Radio Tips

Comments closed