Passionate about technologies, innovations.

Launch and Hide Applications at Login with AppleScript

There are situations when we would like to launch an application but also hide the view once it has been launched. This can be achieved with simple AppleScript:

400: Invalid request

This sample code will first launch "Things" application and tells the "Finder" to hide the window. In order to run this script at login as well as hide the script icon on the dock at start, there are several steps required:

Prerequisite: download iBackground Scripts application. This small application will help us to hide the running script icon.

  1. Open the script with apple script editor, and save as Application.

  1. Drag the saved .app file on iBackground Scripts, and select "yes" in the pop up window.

  1. Go to Accounts panel in System Preferences, drag the script into the 'Login Items' tab.

We are done. Try to logout and login again, see if this works.

Comments