Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save dijikul/e62f4f74c94576f340ddc17711a452bc to your computer and use it in GitHub Desktop.
Save dijikul/e62f4f74c94576f340ddc17711a452bc to your computer and use it in GitHub Desktop.
-- use it as service of automator
on run {input, parameters}
do shell script "date +%Y-%m-%d\\ %H.%M.%S"
set the clipboard to input & " - " & result as text
tell application "System Events"
the path to the frontmost application
the name of the result
the text 1 thru ((offset of "." in the result) - 1) of the result
tell process result to keystroke "v" using command down
end tell
return input
end run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment