![]() Mostly, it’s just a menubar app that runs Lua scripts and extends system actions to those scripts through its API. Hammerspoon is probably the closest you’ll get to AutoHotKey for macOS. Hammerspoon: Control Your System with Lua It follows the same scheme of triggers and actions and supports running Applescript and Automator workflows as actions. It’s similar to BetterTouchTool but more streamlined, and with simpler triggers and actions. Keyboard Maestro is a simple app that gets its job done: automating your system with macros and hotkeys. Keyboard Maestro: Dead Simple Custom Hotkeys With the pro version, called “Powerpack,” Alfred gains even more new features, such as hotkeys, workflows, and terminal integration. Alfred adds lots of new functionality, such as searching the web from the prompt, using a calculator without having to fire up the Calculator app, or the using Quick Look inside of Spotlight by pressing Shift. The free version of Alfred is a drop-in replacement for macOS’s native Spotlight search. Note: This site makes use of affiliate links, which may earn the site money when you buy using those links.Alfred: Extend Spotlight Search with Hotkeys The nice part is that we don’t need to change anything in Keyboard Maestro and can keep playing with tweaks until we find the mix that is right for our intended use. If you want the two reversed, simply drag the Time action above the Date action. This will now append the date first, followed by the time, and then the file extension. – Change the format from the date, to the the time and adjust settings to your liking. – Add another copy of `Rename Finder Items`, again selecting `Don’t Add` when prompted. This is easily added by opening the workflow back up in Automator and making these tweaks: You may have noticed that Automator doesn’t actually allow you to append the Date **and** Time to a file name - at least not in one fell swoop. *Note: Pressing the shortcut more than once on any file will keep appending the date, be careful.* With a file selected you should be able to press your keyboard shortcut and have the date appended to it. Click the button with the ellipses on it (the three dots) and select the workflow that you just saved in step 4. ![]() Drag that action to the pane on the right to add it.Ĩ. Next click to add a new action and search for `Execute an Automator Workflow`. Make sure `Is pressed` reads after the shortcut.ħ. Next you will need to click on the field below to record your new keyboard shortcut, personally I chose: `Control+Shift+Command+R`. ![]() Open Keyboard Maestro and create a new Macro (CMD+n).Ħ. (I have a dedicated Dropbox folder that I keep these workflows in.)ĥ. Now you just need to save the workflow somewhere you remember and somewhere that you will not move it. I recommend turning this on for a more consistent file length.Ĥ. – `Use Leading Zeros` just means that August will be represented as `08` instead of `8`. All the options work as expected, but the first three may not always result in the date you intended it to, for that reason I stay with the current date. – You have four options of the date to grab: Created, Modified, Last Opened, Current. – Be sure to use spaces, dashes, or underscores for the separators so that you don’t break non-Mac tools (other operating systems and websites hate the forward slashes). Here’s how I have mine setup: The final Automator action, that adds the date and the time. Once you have this action in there you will be presented with a multitude of options to consider. When prompted to add an action to copy the file first select `Don’t Add`. Search for another action named `Rename Finder Items` and drag it to the right pane. *This action will tell Automator that we are working with the files you have selected and only those files.*ģ. In the search field to the left, search for the action named `Get Selected Finder Items`. Open Automator and when prompted to create a new file select `Workflow`.Ģ. We need to start in Automator and build a new workflow.ġ. ![]() *What you need: Keyboard Maestro and Automator.* This is very useful for versioning files if you work outside of a version control system - or if you get a lot of files with the same name (images are one I constantly add this info to). It is all done with one keyboard shortcut and no need to get to the editing file name mode. This macro will allow you to select any file in Mac OS X and append the current date to the end of the file name. ![]() *(This post is a part of a series on Keyboard Maestro, ().)* ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |