As a followup to my earlier post about how to create a macOS Service (or a Text Expander snippet) to quickly append a text file using Hazel, Automator and Shell Scripts, here’s a way to instead prepend text to a text file using the same tools.
Why would you want to do this?
My core interest in setting this up is for plain-text journaling. In a way, I am cobbling together the functionality I find extraordinarily useful in the iOS app Drafts for use on macOS.
I like to capture ideas, thoughts, errands, links, apps, articles, tasks and todos quickly, and I use a plain-text document system I’ve put together over the years. These automation setups remove friction in doing so, which make it more likely I will maintain the behavior.
With this setup and the companion append text automation setup, I can hit a keyboard combo, have a small window pop up where I type what I want to capture, hit OK and the automation goes and appends it to the right .txt file, in the right location, behind the scenes.
I will be writing about my plain-text journaling system in a future post. For now, read on to learn how to set this journaling automation up for yourself.
Continue reading “Prepend Text File with Automator & Shell Scripts”
If you are a fellow Photoshop user, and have experienced an unexplained loss of accessing the Hand tool using the spacebar keyboard shortcut, this may have been caused if you are running password manager software 1Password and have used the “Hide” menu option.
I would have never found this had it not been for the warning on TextExpander‘s menubar icon, and the resulting blog post they published regarding TextExpander and Secure Input.
Quitting 1Password and relaunching it fixed the issue for me, so I can only assume it was indeed the culprit.
Continue reading “Secure Input & Photoshop’s Hand Tool Spacebar Shortcut”
I love the Drafts app for the iPhone, and I love automating stuff. The downside to using Drafts is that the workflows I’ve set up aren’t possible with any software on the Mac. I cobbled together some methods to achieve at least the one most common task I have, appending info to a master plain-text log file on Dropbox. Here’s how I did it.
[UPDATE 2017-12-30: here’s the companion article on prepending text files]
Continue reading “Append Text File With Hazel, Automator & Shell Scripts”
I had a conversation with a fellow Mac geek the other day about TextExpander, and he said he rarely uses it because he’s always forgetting the shortcuts. I thought I’d share some of my formatting practices that I’ve found help one remember their shortcuts. Continue reading “TextExpander: Best Practices”
TextExpander has always on the top of my must-have Mac software list. The basic functionality is simple: you type certain characters, and TextExpander replaces those characters with something else. As you can see in the screenshot above, a simple use for this is to fix commonly mistyped words. But that’s barely scratching the surface of what TextExpander offers. Continue reading “TextExpander: Typing Shortcut Utility”
I was looking for a method to make the generation of affiliate links to the iTunes Store less painful. My searching led me to this official Apple resource for generating less spammy-looking links, and it all made sense until I got to the part where it told you to “double percent-encode the plain App Store link”.
I’m no coder, but I am good at reverse-engineering code. But now I needed a script that did this double percent-encoding, and that was just the first step—I would still need to put together the full link in the end. But for now I was at an impasse. Here’s how I solved it (with some help)…
When uploading my artwork to Flickr, I typically have a file name that I want to use for the title as well. The problem is, when doing a Save For Web from Photoshop or Illustrator, I have things set up so the filenames are web-friendly (all lowercase, and dashes instead of spaces between words). So when the files get uploaded, Flickr defaults to using those filenames and manually editing the text is a waste of time. Here’s how I streamlined that process.
Continue reading “Dashes to Spaces & Word Caps using TextExpander”
I was looking to create an AppleScript that appended the Clipboard contents to an existing note in the new Notes app in 10.8 Mountain Lion. It doesn’t seem to be possible, but I found a link at MacScripter to a great resource with lots of actual code examples for using AppleScript and Notes.app.
Using the examples at that link, I did the next best thing and set up an AppleScript that prompts you for the note title, then creates a new note in the default iCloud account with the contents of the Clipboard as the body text.
Continue reading “AppleScript: New iCloud Note from Clipboard”
I was looking for a way to post quick blog posts to WordPress similar to how easy it is to post a Tweet. I love the global “new tweet” in the official Mac app. There’s a lot of stuff I’d probably post on the blog if I didn’t have to go through the process of going to the website and performing the New Post Ritual.
I’ve actually been wanting to post a lot more to the blog as opposed to ephemeral social media outlets as of late—tweets aren’t Google-able, and get lost in the never-ending Timeline. Facebook is even worse. I like the idea of fleshing out a thought, and having it accessible to the search engines. I feel like I’ve thrown away a lot of good ideas in a tweet that really should have been blog posts. But setting up a blog post can sometimes be a pain, even as easy as WordPress makes it.
At first, I thought I might be able to link it to Evernote or by emailing an Evernote note and using WordPress’ “post by email” function. But Evernote adds weird formatting to the text and extra HTML borders—it’s a big mess. I was poking around on the post by email page on the WordPress help and discovered all the shortcode options you can add to the email body to control things like the Category and the Published/Draft status of the emailed post, when it hit me: TextExpander 4.
TextExpander 4 introduced some super-cool new features, my fave being the fill-in snippets with multi-line fields and pop-up menus. Turns out these are perfect for posting via email. Let me show you how I did it…
Continue reading “Super-Fast WordPress Blog Posts via E-Mail with TextExpander 4”