

- #SOUNDCLOUD OPML EDITOR ONLINE HOW TO#
- #SOUNDCLOUD OPML EDITOR ONLINE FULL#
- #SOUNDCLOUD OPML EDITOR ONLINE CODE#
Keywords, Handlers, Verbs, and Calls – This section from Matt Neuberg’s tutorial “Serious First Steps in UserTalk Scripting” reviews more of the basics of scripting in the UserTalk language (see download link for full tutorial).The following links goes into more detail on the concepts discussed in this part of the series.
#SOUNDCLOUD OPML EDITOR ONLINE HOW TO#
The next part of this series will show how to take the script from this example and use it to display the results of the script in a web page. Click on the OK button to close the dialog box. A dialog box should appear with the text “The total is 55”. To run the script, click on the “Run” button at the top of the window. The final result should look like the following: Type the name of the handler on the line as follows: The gray triangle will move left to be at the same level as the handler. After the last line, press the Return key, then hold down the Shift key and press the Tab key.
#SOUNDCLOUD OPML EDITOR ONLINE CODE#
Your code should look like the following:įinally, a call needs to be added outside the main script so that the script can be run. To indent the code back to the left, hold the Shift key down while pressing the Tab key. To indent the code to the right, press the Tab key. To begin writing the script, click next to the triangle and type the following lines, pressing the Return key at the end of each line: This is the first line of the script, and it is blank. Below the handler is an indented triangle. The handler includes the name that you entered when you created the script object. The OPML Editor creates a handler as the first line of the script. For this example, enter “TestScript” and click the OK button. A dialog box will appear, asking for the name of the script. To create a new script object, click on the window shown above, then select the Table menu item, then select the New Script sub-menu item. Press the Apple or Control key and double-click on the black triangle next to the text “MyTestToolSuite” entry in the MyTestTool.root window. To open the MyTestToolSuite table, go to the Window menu and select the “MyTestTool.root” menu option. If you have not yet created the MyTestTool Tool, go back to part 1 of this series and create the Tool. The next example will show how to create a script and display the results from running a script in a dialog box.įor this example, a script will be created in the MyTestToolSuite table. Part 1 of this series used a simple one line script used as part of an application menu. The “Hello, world!” message will appear in the browser window.

Close the window, then go to in a browser window. You will see the following window:Ĭlick in the window at the end of the first line, then press Return and enter the text “Hello, world!” without the quotation marks. Double-click on the gray triangle to open the text onject. To create a “Hello World” message on the Tool home page, add text to the index text object. In the default website table, there is a wp text object called “index”. Individual website pages can be created with simple wp text objects. The OPML Editor uses the elements within the website table to create the website. A blank page with the title “Home” will appear in the browser window.

Enter this URL in a browser window or click on the link in the previous sentence if the OPML Editor is running. In our example, the tool name is MyTestTool, which makes the URL. Use the base URL, followed by the name of the Tool to view the web site. The website for a Tool can be viewed while the OPML Editor is running. This example will work with the table element “index” to display a “Hello World” message. The table contains various tables, scripts and text objects that are used to create the Tool website. Hold down the Apple or Control key and double-click on the black triangle next to the text “MyTestToolWebsite”. After you select the Tool, a window will open showing a list of tables making up the Tool. If you have not created this Tool, go back to part 1 of this series and create the MyTestTool Tool. To view this table, go to the Window menu and select the “MyTestTool.root” menu option. In this example Tool, the table is called MyTestToolWebsite. These elements can present information (like help pages for the Tool), but it can also be the user interface for a web application (as will be shown at the end of this series). Each Tool contains a table containing elements which the OPML Editor can render into a website. Another method that can be used to display a “Hello World” message is through the Tool website.
