Skip to content

Instantly share code, notes, and snippets.

-- 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