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