applescriptautohotkeykeyboard-maestro

Copy IP and use in Applescript


I am using Keyboard Maestro and within that using applescript for following action:

Kindly help me with the solution on how I can use "copied" text within applescript to do ssh, as I dont want to write direct IP within script


Solution

  • ok got the answer

    set ipaddress to the clipboard  tell application "Terminal"     
    activate     
    do script "ssh " & ipaddress & " " -- this always opens a
    new window end tell