Thanks to this post on the Keyboard Maestro forum:
Update:
Right click on any Finder item, then hold Option. “Copy” becomes “Copy as Pathname”!!— @masnick
(Thanks @anatomyofashane - you are a genius.)
Thanks to this post on the Keyboard Maestro forum:
Update:
Right click on any Finder item, then hold Option. “Copy” becomes “Copy as Pathname”!!— @masnick
(Thanks @anatomyofashane - you are a genius.)
Here's a TextExpander snippet (well, two snippets) for titlecasing the clipboard contents:
(Two snippets are necessary because of a bug that appends a newline to the end of any JXA snippets. This will be fixed in TextExpander 5.0.1, but in 5.0 it's necessary.)
If you give it 10 or 11 digits in any format, this snippet will spit it out in the correct (555) 555-5555 format.
(Thanks to tadman on StackOverflow for the bulk of this script.)
I often use message://<message-id@example.com>
URLs to reference a specific email in OmniFocus or Evernote: clicking one of these URLs will automatically open up the source message in Mail.app.
There's not a great way to get these very handy message URLs without AppleScript, so based on this SuperUser answer, I created a TextExpander snippet.
Now, when I type xmsg
, TextExpander will insert the message URL for the selected message in Mail.app into whatever application I'm working in.
Here's the TextExpander snippet, and here's the AppleScript:
tell application "Mail" set selectedMessages to selection set theMessage to item 1 of selectedMessages set messageid to message id of theMessage -- Make URL (must use URL-encoded values for "<" and ">") set urlText to "message://" & "%3c" & messageid & "%3e" return urlText end tell