Skip to content

Instantly share code, notes, and snippets.

@sukeharu
Last active June 2, 2017 07:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sukeharu/1eeed9795b78c7a7da3a065629cfda27 to your computer and use it in GitHub Desktop.
Save sukeharu/1eeed9795b78c7a7da3a065629cfda27 to your computer and use it in GitHub Desktop.
Get four digit numbers as string from the right end of the unix time number, then set it to the clipboard by AppleScript.
set d to (do shell script "d=`date +%s`;echo ${d:(-4)}")
set the clipboard to d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment