Script Creation

Scripting Documentation


SnipDo uses Microsofts Powershell Scripting language.

When writing scripts you can access the selected text with the following variables:

$PLAIN_TEXT :  type string (selected text)
$URLS : type string[] (the Urls extracted by SnipDo)
$URLENCODED_TEXT : type string (text encoded in URL format)
$HTMLENCODED_TEXT : type string (text encoded in HTML format)

An example scripts might look as follow:

#if SnipDo recognized at least  one url open the first on
if($URLS.Count -ge 0) {
Start-Process $URLS[0]
#open the browser and search the selected text on google
Start-Process “$PLAIN_TEXT”