6 ms·
Ask HN: What do you automate in your workflow?
I'm curious what tasks people automate. I often write short scripts to do simple things like summoning Kitty by Ctrl-Space in quake mode (macOS, using Hammerspoon), changing the external monitor's brightness, switching audio output device, etc. On iPhone, I've created some complex iOS Shortcuts. One of them is basically an app at this point. I've also made a number of Word VBA macros that have really helped me with tedious tasks.
- thephyber 4y agoNothing special, so I am interested in seeing other answers. Email addresses customized to the merchant/sender and lots of email filters to route incoming messages to folders.
- digdugdirk 4y agoWhat kind of word macros? I've often thought that there's more value in extending office apps than is taken advantage of. It's an interesting case where it's difficult to make an extension that can do "anything", but relatively simple to make an extension that can do one simple task really, really well.
- behnamoh 4y agoLike search and replace among equations, change font for all equations AFTER they're written, scroll up and down using Vim keys, etc.
- sqwrell 4y agobatch files that I wish I was better with
- trentthethief 4y agoIf you like customizing and automating things then you should look at linux. My entire environment was hand crafted from the ground up, so I guess “everything” is my response.
- nso95 4y agonever heard of it
- behnamoh 4y agoI know. The advantage of Linux is that you can pretty much write a script that sets up the exact same OS settings on new machines. Definitely useful for system admins.
- isaacremuant 4y agoYou could probably do a lot of that for Windows or Mac with a provisioning tool like ansible as well. It's definitely all powerful with Linux but people should definitely try anyway if it's valuable enough for them.
- tanin 4y agoMy time to shine. I have built a programmable tooltip for Mac. It works on any app. I use this hundreds of times a day at work for 2y now. You can select any text and activate the tooltip with the short key. Then, the tooltip offers a list of options like jumping to URL, showing some extra info. You are the one who write the script to process the text and return the options. You can check it out here: github.com/tanin47/tip PS. I configure a mouse button to trigger the Tip short key, so it is even more convenient.
- al_borland 4y agoThis is pretty interesting. When I was using Windows at work I made something like this with AutoHotKey. I’d highlight text, hit a button on my mouse, it would load that text into a GUI and give me a dozen options for what I wanted to do with it. Some options were basic, just appending it to a URL to do a search, while others were more involved, requiring some config setup in the GUI to open something in a native app. It was fantastic, and many people on my team started using it. Since I moved to macOS at work all of that went away and I haven’t been able to find a good alternative to AutoHotKey for macOS. Although it’s hard to know if I can even attempt to run this at work with how locked down things have become.
- tanin 4y ago> Although it’s hard to know if I can even attempt to run this at work with how locked down things have become. If it helps, Tip runs in App Sandbox without requesting any additional permission. This means Tip cannot read any file on your computer (other than the predefined places in its own sandbox) nor anything on other apps. There are 2 limited things that it can do: 1. It can only execute the script that you provide at ~/Library/Application\ Scripts/tanin.tip/provider.script 2. It can only see the string that you activate Tip on. This is through NSService. The privacy and security is top notch. Kudos to Apple who provides such good frameworks. You can try requesting the app to be allowed from your IT team. I did this at my company (i.e. Stripe) as well.
- al_borland 4y ago
- eternityforest 4y agoI don't really "automate" in the usual way, except a few limited cases. My computer is almost totally lacking any custom scripts, and I don't have any cron jobs on my laptop or anything like that. Mostly what I do is build the workflow to match pre-existing tools, rather than build tools to match a workflow. I do use a massive amount of off-the-shelf automation though. Even for very small personal servers, I make sure that everything is Ansible-ed. I make a lot of use of Obsidian features like daily notes templates, I use YoSmart and Tile, etc. I keep my entire music collection, all my books, and some important documents synced with SyncThing on all my devices. But in general I just don't have a reason to automate much of anything, I try to choose things that just work, and if that's not possible, I try to do it at the source(I'd rather add support for another file format, or switch to a tool that has wider support, that add a converter utility). I'm pretty obsessed with future proofing, and usually choose large and popular software, so it's rare that I want a feature that isn't already there.
- account-5 4y agoEverything I can. I (unfortunately) mostly work on windows machines. I use autohotkey extensively. Amazing at gluing disperate software together, hotstrings, hotkeys; and as a programming language, for a beginner, the documentation is second to none. I have extensive bookmarklets for doing stuff in browser where autohotkey can't see much. And like you, since I have to work in ms office, VBA is a must. Autohotkey can do VBA too but sometimes it's just easier in app.
- franklursight 4y agoI’m interested in others’ specific automation examples, especially around ensuring important-things-to-be-done are bright front and center at the right time. Mine are: - Context switching (ala GTD) e.g. switching to dev-mode, or buisdev-mode, or analytics-mode - Focused variants. Same as above but all others things are shutdown - All devops and the automations are the documentation - Switching light/dark mode (aka garden vs office work-modes) - Data wrangling (moving important data around) I’m missing health-monitoring automations but I’ve not yet clearly worked through what I want here (but i like what Bearable are doing).
- Madeindjs 4y agoI made basics bash scripts to do some simple stuffs. Scripts I use more often are: 1. A script who help me to make conventional commits name (ex: `feat(xyz): add some stuff. JIRA-ID`). It add Jira Id at the end using git branch, get scope using path of the folder and ask me the rest 2. Create a markdown file for the day as worklog. An another script create markdown file for the Jira issue that I work on and add a wikilink on the worklog 3. Read scripts in package.json and ask me what I want to execute using fzf I try to do more and more since it's really useful and I had some fun to made them.