This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on run {input, parameters} | |
open location "dict://" & input | |
set logFile to "LookupLog.txt" | |
set logPath to quoted form of (POSIX path of (path to desktop folder as string) & logFile) | |
set timeStamp to do shell script "date +%Y-%m-%d" | |
do shell script "echo " & timeStamp & " \" : " & input & "\" >> " & logPath | |
return input | |