This Week's Sponsor:

Kolide

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


How To: Launch Login Items Via Applescript and Avoid Login Delays

I stumbled upon this cool trick on MacOSXHints yesterday, and I believe it’s amazing: basically, it lets you open all your login items via applescript instead of saving them into your account Preferences. Many people reported issues with login items in Snow Leopard - me too - so this is just perfect.

Fire up Applescript editor and type:

tell application “Notify” to launch

delay3

Obviously, you can replace Notify with the app you like, be sure to write it between the quotes. Then, simply repeat those two strings for all your login items.

Here’s mine:

tell application “ClipMenu” to launch

delay 3

tell application “Caffeine” to launch

delay 3

tell application “Cloud” to launch

delay 3

tell application “Notify” to launch

delay 3

tell application “FastScripts” to launch

delay 3

Delay3 is useful for preventing the applications to launch at the same time. You can replace to launch with to activate if you’d like to bring the app to front.

And last, you can save the script as an application bundle and add it to your login items. But if you have problems with your login items (as I said before) you can put the app in your dock, or in a stack. It’s up to you.

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.