Revision 2365040 of "PlanoTse Handbook for Job Search Automation/First Lesson in PlanoTseScript" on enwikibooks

{{Navigate|Next=Mining the Web|Prev=Creating a Testbed}}
__NOTOC__
:[[PlanoTse Handbook for Job Search Automation/PlanoTseScript|Chapter 5]]
:[http://planotse.wordpress.com/2012/06/11/what-is-planotsescript-lesson-2/ Lesson 2 in PlanoTseScript]
:[[PlanoTse Handbook for Job Search Automation/Discover all web domains|Use case: Discover all web domains related my search objectives]]
== First Lesson in PlanoTseScript ==

[[File:Australian State Route 123.svg|thumb]]Carry out all three tasks as defined below. You should generate and check out the following PlanoTseScript examples:



* Example 22 - Execution Trace Log, see [[PlanoTse Handbook for Job Search Automation/Trace Log|sample trace log]]
* Example 23 - Tree View Control
* Example 24 Conditional Logic



=== Task 1. Review Basic Concepts ===



Here are the few things you should know when working with [http://planotse.wordpress.com/2012/06/17/planotsescript-web-search-scripting-language/ PlanoTseScript]. If you're not sure of any concept, click on the related link and review the material:


* [[PlanoTse Handbook for Job Search Automation/PlanoTseScript Springboards|Springboards]] are where you can store and run your source code in PlanoTseScript.
* [[PlanoTse Handbook for Job Search Automation/Scripting Language in PlanoTse|Code & Run springboard]] is where you can do a quick run of your code in PlanoTseScript.
* When you're asked to run an immediate command in PlanoTseScript, you can bring up the [[PlanoTse Handbook for Job Search Automation/Scripting Language in PlanoTse|Code & Run springboard]], type in the command, then press the button '''Run PlanoTseScript'''.
* In PlanoTse, [[PlanoTse Handbook for Job Search Automation/Data Holders|data holder]] is the basic unit of data and each holder has a direction for its data.
* [[PlanoTse Handbook for Job Search Automation/Data Direction|Data direction]] has two parts: name and body. To access the body of a data item's direction, click on its '''Steps''' button.
* The body of a data direction can also be a springboard for your PlanoTseScript source code.
* You should first [[PlanoTse Handbook for Job Search Automation/Creating a Testbed|create a testbed]] when you do an experiment with your new source code in PlanoTseScript.

=== Task 2. Create a Testbed ===



# Follow the steps on [[PlanoTse Handbook for Job Search Automation/Creating a Testbed|this page]] and create a scripting testbed, call it something like Testbed1 or something. 
# Open Testbed1 and press the button Favorite to book mark it as a favorite item.
# Press the '''Steps''' button.
# Enter the sample code: { say Hello from Testbed1; }
# Press the button '''Save & Close'''.
# Press the '''Run''' button.
<p>&nbsp;

=== Task 3. Insert sample code ===

# Select the command '''[File &raquo; Favorites]''' from the main menu.
# In the tree view under Bookmarks and Favorites, double-click on ''Testbed1'' to open the testbed.
# Press the '''Steps''' button.
# Press the '''Example''' button.
# Press the '''OK''' button.
# Double-click on '''Example 22''' for the example, ''Execution Trace Log''.
# Press the '''Yes''' button to replace the current content with the selected example.
# Press the button '''Save & Close'''.
# Press the '''Run''' button and see the result of the sample code.

After doing the above steps once, you should repeat the above steps but use number '''23''' for the example, ''Tree View Control''. You should also repeat the above steps but use number '''24''' for the example, ''Conditional Logic''.



{{PlanoTse Handbook for Job Search Automation/shortestroute}}

== End of the Shortest Route ==
<table  width="100%">
<tr>
<td valign=top  width="50%">
This is the last page of the chapter, [[PlanoTse Handbook for Job Search Automation/PlanoTseScript|Chapter 5. PlanoTseScript]], 
and you have reached the end of [[PlanoTse Handbook for Job Search Automation/The Shortest Route|Part I - The Shortest Route]].

The next chapter, [[PlanoTse Handbook for Job Search Automation/Automation Process|Chapter 6. Web Search Automation Process]], is the first chapter in the second section, [[PlanoTse Handbook for Job Search Automation/Mining the Web|Part II - Mining the Web]].

Remember, the purpose of [[PlanoTse Handbook for Job Search Automation/The Shortest Route|Part I - the Shortest Route]] is to as quickly as possible prepare you with all the basic concepts in PlanoTse in order to get you started with [[PlanoTse Handbook for Job Search Automation/Mining the Web|the mining of global data]].





{{message box|image=Right-pointing hand in green octagon.svg|backgroundcolor=Azure |heading=What to do now|message=Start reading the next section, [[PlanoTse Handbook for Job Search Automation/Mining the Web|Part II - Mining the Web]].}}





<td valign=top  width="50%" align=center>
[[File:The end of the South Island Road, Bluff.jpg|500px]]
</table>



{{Navigate|Next=Mining the Web|Prev=Creating a Testbed}}