It is the updated variant of my copy path
script for Automator
on run {input, parameters}
set res to ""
if not input = "" then
repeat with theFile in input
if not res = "" then
set res to res & return
end if
let apiaiRequest = apiAiService.textRequest(text, | |
{ | |
sessionId: sessionIds.get(sender), | |
contexts: [ | |
{ | |
name: "generic", | |
parameters: { | |
facebook_user_id: sender | |
} | |
} |
It is the updated variant of my copy path
script for Automator
on run {input, parameters}
set res to ""
if not input = "" then
repeat with theFile in input
if not res = "" then
set res to res & return
end if
This script will be usefull if you want to enable VPN automatically on coming to work and to disable it on escaping from work using great Control Plane app.
It is assumed that you use Tunnelblick to manage VPN connections.
To connect to VPN:
set q to "<your_connection_name>"
tell application "Tunnelblick"
set configs to get name of configurations
if q is in configs then