Last active
May 19, 2020 03:04
-
-
Save mturilin/a48f008690537b1d86116bd0c01bec64 to your computer and use it in GitHub Desktop.
AppleScript
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
to logit(log_string, log_file) | |
do shell script ¬ | |
"echo `date '+%Y-%m-%d %T: '`\"" & log_string & ¬ | |
"\" >> $HOME/Library/Logs/" & log_file & ".log" | |
end logit |
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
property loggit : load script POSIX file "/Users/mturilin/Library/Mobile Documents/com~apple~ScriptEditor2/Documents/logit.scpt" | |
tell logit | |
logit("dddd") | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment