跳轉到內容

PlanoTse 工作搜尋自動化手冊/PlanoTseScript 基礎命令

來自華夏公益教科書,開放的書籍,開放的世界
PlanoTse 工作搜尋自動化手冊
PlanoTseScript 語言參考 PlanoTseScript 基礎命令 PlanoTseScript WSA 命令

PlanoTseScript 基礎命令

[編輯 | 編輯原始碼]

在 PlanoTseScript 中,每個語句都以一個基本命令開頭。基本命令是一個或兩個關鍵字。此頁面提供了 PlanoTseScript 中所有基本命令的列表。除非另有說明,所有命令都必須用小寫字母編寫。


A 到 D 的命令

[編輯 | 編輯原始碼]
aw
PlanoTseScript WSA 命令
bookmark value2
將樹狀檢視中第一個編號為 value2 的專案新增到書籤。

{ bookmark si.id; say The selected item has been bookmarked.; }

bookmarks [ on | off ]
選擇 [檢視 » 書籤] 在樹狀檢視中開啟或關閉書籤節點。
clear [ keyword2 | 資料項集合 ]
keyword2 必須是一個有效的 PlanoTse 資料項集合 或者以下之一:
all
從主選單中選擇 [檢視 » 清除所有]
bookmarks
刪除所有書籤。
go
清除當前的 Go 指令碼。
startup
清除當前的啟動指令碼。
trace
清除當前的 PlanoTseScript 執行跟蹤日誌。
websearch
刪除所有未處理的網路搜尋結果。
collapse all
從主選單中選擇 [檢視 » 摺疊所有]
dragdrop [ on | off ]
從主選單中選擇 [檢視 » 啟用拖放] 在樹狀檢視中啟用或停用拖放功能。

E 到 H 的命令

[編輯 | 編輯原始碼]
edit [ 專案型別 專案編號 | 專案標題 ]
開啟指定型別和編號的專案,或指定標題的專案。

{ edit script 12345; }

{ edit Templateless Domains; }

exit
停止解釋當前跳板中剩餘的原始碼。
expand all
從主選單中選擇 [檢視 » 展開所有]
expect 專案型別 專案編號
表示式 missing 如果未找到指定型別和編號的專案,則為真。

{ expect script 12345; if missing then ext; }

find
PlanoTseScript WSA 命令
focus 專案編號
選擇樹狀檢視中第一個編號為指定的專案。

{ focus 12345; say Item 12345 has been selected in the tree view.; }

folder keyword2
keyword2 必須是以下之一:
資料項集合
開啟包含宣告資料項的資料夾,例如 responsesnotes
dataroot
開啟當前資料根資料夾。
reports
開啟報告資料夾。
trace
開啟跟蹤日誌資料夾。
websearch
開啟網路搜尋結果資料夾。
given
PlanoTseScript WSA 命令
goto url2
轉到指定的 URL。

{ goto google.com; }

I 到 R 的命令

[編輯 | 編輯原始碼]
if condition2 then statement4
如果 condition2 為真,則執行 statement4condition2 必須是以下關鍵字之一: [ yes | no | missing | testdata | realtest ]。
  • 條件 'yes' 和 'no' 由命令 'yesno' 設定。
  • 條件 'missing' 由命令 'expect' 設定。
  • 條件 'testdata' 和 'realdata' 預設設定為匹配目錄模式:當前使用測試或真實資料根目錄。

{ expect script 12345; if missing then exit; }

load all
載入樹狀檢視中的所有資料,或樹狀檢視可以處理的儘可能多的資料。
load collection2
載入 collection2 中指定資料型別的專案。

{ load notes; load scripts; }

main press button steps
按下主視窗上的 步驟 按鈕。
new item-type item-title
建立一個新的專案,其資料型別和標題如指定。

{ new script My New Testbed; }

notice message2
在主視窗底部的狀態列上顯示 message2

{ notice The script is still running; }

panel [ 1 | 2 | 3 | 12 | 23 | 13 | 123 ]
僅顯示樹狀檢視 (1)、節點編輯器 (2) 或白板面板,或任意兩個,或所有三個。
realdata directory2
directory2 儲存為真實資料根資料夾,並立即使用它。
replace key2 value3
此後,在程式碼中的任何地方,將 key2 替換為 value3。如果未指定 value3,則從現在開始,停止將 key2 替換為任何其他內容。
run [ go | startup ]
執行 Go 指令碼或啟動指令碼。
run item-type item-number
執行指定型別和編號的資料項的資料方向(步驟)中的 PlanoTseScript 程式碼。

{ run script 12345; }


S 到 Z 的命令

[編輯 | 編輯原始碼]
say message2
彈出一個訊息框,顯示 message2
searches [ on | off ]
在樹狀檢視中開啟或關閉搜尋節點。
testdata directory2
directory2 儲存為測試資料根資料夾並立即使用它。
trace message2
message2 釋出到 PlanoTseScript 執行跟蹤日誌中。
unload collection2
從樹狀檢視中清除所有 collection2 指定型別的專案。

{ unload notes; unload scripts; }

use [ realdata | testdata ]
切換到真實或測試資料根目錄。
view trace
顯示 PlanoTseScript 執行跟蹤日誌 的內容。
web search search-string-3
使用 search-string-3 作為搜尋條件進行網路搜尋。

{ web search Management Dallas Retail job-description -resume -hardware; }

ws search-string-2
網路搜尋的縮寫;使用 search-string-2 作為搜尋條件進行網路搜尋。

{ ws Management Dallas Retail job-description -resume -hardware; }

yesno question2
提出一個是或否問題,並儲存“是”和“否”條件,供“if”命令使用。

{ yesno Stop running this script?; if yes then exit; }


PlanoTse 工作搜尋自動化手冊
PlanoTseScript 語言參考 PlanoTseScript 基礎命令 PlanoTseScript WSA 命令
華夏公益教科書