This Week's Sponsor:

Kolide

Ensure that if a device isn’t secure it can’t access your apps.  It’s Device Trust for Okta.


Automate Your Workflow with Sikuli

I think things such as Applescript and Automator scare a lot of people. While it’s an easy language, the Average Joe does not want to learn how to program. Personally I stayed away from those things for a long time, but have recently adopted them into my workflow once I made up my mind to just do it. Still, it took a weekend of reading and a week of just messing around to get comfortable going pro so to speak. Sikuli takes the idea of Automated workflows and makes it available for regular people. While it’s a simple screenshot app in it’s most basic form, more advanced users can add a ton of functionality.

It’s hard to argue that Sikuli, an MIT project, can turn the Average Joe into a geek guru, but it’s definitely a lot simpler to pick up if you’re wanting to accomplish relatively simple tasks. I spent an afternoon with it, and was able to utilize most functions within a few hours.

The Sikuli IDE is relatively simple in design. The IDE features five buttons in the toolbar, three of which are snapshot buttons. The other two, run buttons, allow you to run your functions as is or step through your Sikuli Script one line at a time.

Pressing the camera button will allow you to take a snapshot of an element on screen. You simply drag a box around whatever element (in any window) you’d like to click, and then that image appears in your console. It’s kind of weird seeing pictures in a console, but if you wrap it in click(), then Sikuli will recognize it as a command to click that object. Using this piece of code alone, you could make a fully automated workflow as long as you weren’t dealing with sliders or anything too complex.

I’m not going to go through all the commands, but for an easy reference you can find them all here. There are dozens of demos on Sikuli’s website for you pick through - most are super easy and will take only five minutes to build.

I think it’s a great tool to expand upon previous workflows. I know for example a lot of people (like the MacGeekGab podcasters) use Apple’s tools to fully automate the upload of their popular shows. Some tasks aren’t so easy to pull off in code alone (such as highlighting a particular text box or pressing a certain button), so you could call a Sikuli Script from your previous scripts to extend functionality. I think crafty users could create a killer combination of these things that’ll significantly make their day easier and reduce the actual need to do repetitive tasks.

On the other hand, Sikuli doesn’t perform actions instantly. Instead, it’s rather slow in execution as it thinks about where that “image” is located before performing an action with it. Also, being a beta product it’s exceptionally buggy, and I’ve unfortunately run into many occasions where I’d get an all black screen that I couldn’t exit out of. Sadly I had to manually reboot the machine via power button. When it works, it works great. When the app does something strange, it’s usually not good. So use with caution.

I think those who live on the edge of adventure and who would love to get their hands on something this simple will be a 100% satisfied. Being free, there’s no reason not to give Sikuli a whirl. Sikuli’s website and Google are excellent references to everything it can provide you, and if you don’t mind giving it an hour or so to sink in, you’ll be glad you did.

Unlock More with Club MacStories

Founded in 2015, Club MacStories has delivered exclusive content every week for over six years.

In that time, members have enjoyed nearly 400 weekly and monthly newsletters packed with more of your favorite MacStories writing as well as Club-only podcasts, eBooks, discounts on apps, icons, and services. Join today, and you’ll get everything new that we publish every week, plus access to our entire archive of back issues and downloadable perks.

The Club expanded in 2021 with Club MacStories+ and Club Premier. Club MacStories+ members enjoy even more exclusive stories, a vibrant Discord community, a rotating roster of app discounts, and more. And, with Club Premier, you get everything we offer at every Club level plus an extended, ad-free version of our podcast AppStories that is delivered early each week in high-bitrate audio.

Choose the Club plan that’s right for you:

  • Club MacStories: Weekly and monthly newsletters via email and the web that are brimming with app collections, tips, automation workflows, longform writing, a Club-only podcast, periodic giveaways, and more;
  • Club MacStories+: Everything that Club MacStories offers, plus exclusive content like Federico’s Automation Academy and John’s Macintosh Desktop Experience, a powerful web app for searching and exploring over 6 years of content and creating custom RSS feeds of Club content, an active Discord community, and a rotating collection of discounts, and more;
  • Club Premier: Everything in from our other plans and AppStories+, an extended version of our flagship podcast that’s delivered early, ad-free, and in high-bitrate audio.