Created
July 9, 2013 09:27
-
-
Save clooth/5955973 to your computer and use it in GitHub Desktop.
Applescript to display real date of selected timestamp
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} | |
tell application "System Events" | |
set activeApp to name of first process whose frontmost is true | |
end tell | |
set _timestamp to (input as string) | |
tell application activeApp | |
set realDate to ((do shell script "date -r " & _timestamp) as string) | |
display dialog realDate | |
end tell | |
return realDate | |
end run |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To use with a keyboard shortcut: