This Week's Sponsor:

Winterfest 2024

The Festival of Artisanal Software


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.

Access Extra Content and Perks

Founded in 2015, Club MacStories has delivered exclusive content every week for nearly a decade.

What started with weekly and monthly email newsletters has blossomed into a family of memberships designed every MacStories fan.

Learn more here and from our Club FAQs.

Club MacStories: Weekly and monthly newsletters via email and the web that are brimming with apps, tips, automation workflows, longform writing, early access to the MacStories Unwind podcast, periodic giveaways, and more;

Club MacStories+: Everything that Club MacStories offers, plus an active Discord community, advanced search and custom RSS features for exploring the Club’s entire back catalog, bonus columns, and dozens of app discounts;

Club Premier: All of the above and AppStories+, an extended version of our flagship podcast that’s delivered early, ad-free, and in high-bitrate audio.