跳轉到內容

PlanoTse 求職自動化手冊/PlanoTseScript 表示式

來自華夏公益教科書,開放的書籍,開放的世界
PlanoTse 求職自動化手冊
PlanoTseScript 語言參考 PlanoTseScript 表示式 PlanoTseScript 基本命令

PlanoTseScript 表示式

[編輯 | 編輯原始碼]
missing
根據命令“expect”宣告的檔案是否存在,設定為真或假。

{ expect script 12345; if missing then exit; }

newid
新建立專案的專案編號

{ new script My Third Testbed; expect script newid; if missing then exit; }

no
根據命令“yesno”提出的是/否問題的最後答案設定為真或假。

{ yesno Do you want to do that?; if no then say The answer was NO; }

realdata
如果當前使用的是真實資料根目錄,則設定為真。

{ if realdata then exit; }

si.bookmark
主視窗樹檢視中當前選定專案的書籤;書籤是一個字串,從左到右包含專案型別、專案編號和專案標題。

{ say The type, ID and title of the selected item are si.bookmark; }

si.handle
主視窗樹檢視中當前選定專案的控制代碼;控制代碼是一個字串,從左到右包含專案型別和專案編號。

{ say The type and ID of the selected item are si.handle; }

si.id
主視窗樹檢視中當前選定專案的專案編號

{ say ID of the selected item is si.id; }

si.title
主視窗樹檢視中當前選定專案的標題

{ say Title of the selected item is si.title; }

testdata
如果當前使用的是測試資料根目錄,則設定為真。

{ if testdata then exit; }

yes
根據命令“yesno”提出的是/否問題的最後答案設定為真或假。

{ yesno Do you want to do this?; if yes then say The answer was YES; }

PlanoTse 求職自動化手冊
PlanoTseScript 語言參考 PlanoTseScript 表示式 PlanoTseScript 基本命令
華夏公益教科書