⌘ Using Rsync and Keyboard Maestro to Merge and Purge thousands of redundant files

A perfect example of combining the power of the Shell and Keyboard Maestro. Quite some time ago I removed my individual external drives from their cases and combined them into several multi-unit drive enclosures. This was very convenient, but led to the issue of many, many duplicates across multiple drives. Consolidating all these files has turned out to be more of a chore than I expected. Merging folders is either a foreign concept or a dirty word. Apps have no idea how to handle it. If I have Drive 1 and Drive 2, if files already exist on Drive 1, simply skip them. If there is a new file, copy it over, but don’t waste time copying something that already exists in the destination. At the end, delete all the files off Drive 2 so I can reclaim the space. Don’t leave it 98% full like it was before. For this task, only a handful of files should be copied. […]

⌘ 101 Things to do with Keyboard Maestro

To be fair, I don’t have 101 macros written, yet. But, I’m well on my way. Although, reading the forums, there are others who have done that and more. A few sophisticated users have a couple hundred macros covering dozens of different areas. I have jealousy and hope to be that proficient one day. What I’ve learned is that Keyboard Maestro is far more than a “macro” tool. It’s every bit a development environment. A development environment that with a small time investment and a bit of research, can create custom solutions for all sorts of situations. It’s even possible to replicate the functionality of off the shelf software, or in some cases replace it. It may not be 100% parity, but it will accomplish the core functionality. For example, here’s a few of the applets I’ve created so far. Filter the clipboard to remove extraneous text from Amazon links Rename files as they are added to a folder Move […]

Convert letters to phone keypad numbers with Keyboard Maestro

I ran into this the other day where I needed to convert my username to digits I could type on a phone keypad. While not a big deal, there are plenty of online tools to do it, I wondered if it could be done with Keyboard Maestro. The answer is yes, and in just a few blocks. This is a simple macro, but it has a couple of neat items. First, it gets the text to convert. That text is converted to lowercase and any spaces are removed. It then uses RegEx to check a range of letters such as [a-c] or [d-f] to see what number on the keypad to assign. The values can also be separated using the pipe | symbol. [a|b|c] would be a or b or c. That’s convenient. Once the conversion is done, the final result is copied to the clipboard. This could easily be changed to a text box where the value could be […]

Prompt for User Input in Keyboard Maestro

One of the great things about Keyboard Maestro is the ability to design a UI for your macro. Using the `Prompt for User Input` block, the macro can be dynamic in how it works, or perform different functions based on user choice. The prompt can contain an entry field, checkbox, dropdown, or buttons selections. The result is stored in a variable. I have several macros with prompts, such as the size of a RAM drive, the number of times to click the mouse, a folder name, and what to rename a file. Those results are then used later in the macro or passed to the shell to move files, or create volumes. A broad list of examples can be found at the Keyboard Maestro Wiki: Keyboard Maestro- Prompt for User Input The following examples are the ones I use most: Text field: Variable and default value Checkbox: Variable and 0|1 indicating checked or not (value must be 0 or 1, […]

Building a Simple Workflow With Keyboard Maestro

Building a Keyboard Maestro workflow is a great way to save time and make a consistent work environment. I trigger several workflows for writing, SQL, and automation development. This creates consistency by having all my tools laid out in front of me before I begin. Let’s use my Journal workflow as an example. Before I begin writing, several things need to happen. I need to open and mount the DMG file that contains my .scriv file. I need to start Scrivener and load that file. I start Wordweb so I have a dictionary and thesaurus at the ready. I also start TextSoap for text cleaning. They are simple steps, but when you pick each apart, there are multiple actions taking place. Here is the breakdown: – Open Finder, navigate to the Dropbox folder, open the Scrivener folder, then load the DMG. – Once the DMG is open, select the .scriv file inside and load it. – Open Launchpad, find Wordweb […]