Skip to content

Instantly share code, notes, and snippets.

@sirotaku
sirotaku / Lookup & Log.workflow
Last active December 17, 2020 06:45
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