Scripting Documentation
Starting from Version 3.1 , SnipDo supports script creation with Python in addition to Powershell.
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 “https://www.google.com/search?q=$PLAIN_TEXT”
___________________________________________________