Skip to content

Instantly share code, notes, and snippets.

@sirotaku
Last active December 17, 2020 06:45
Show Gist options
  • Save sirotaku/679c00c36eb2b071f7622a3ef8aed1e5 to your computer and use it in GitHub Desktop.
Save sirotaku/679c00c36eb2b071f7622a3ef8aed1e5 to your computer and use it in GitHub Desktop.
ActionScript to log Dictionary lookup history on Mac.
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
end run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment