• On CBS MoneyWatch: 4 Things You SHOULDN'T Buy at Target
advertisement
August 18, 2005 7:55 AM PDT

Tutorial: Getting into Login Items: Part 1

by CNET staff

Ted Landau
August 2005

If you've never used Login Items, it's time to give them a whirl. They are among the most convenient shortcuts in Mac OS X. Actually, even if you have never created a Login Item, you may be using them anyway, as a result of applications that automatically add themselves to your list without exactly telling you.

And for those already familiar with Login Items, there may still be some tips and tricks of which you are unaware.

In this two-part tutorial (concluding next month), we explore all about Login Items. Using a Q&A format, I'll explain what Login Items are, how they work, and how to get the most use out of them.

Note: Exactly how to access your Login Items has varied as Mac OS X has evolved from 10.0 to 10.4. Unless otherwise specified, this article assumes you are using Tiger (Mac OS X 10.4).

Q. What is a Login Item ?

A Login Item is simply a file that has been added to a Login Items list. All files on the list automatically launch whenever you log in to your account. That is, they launch just after the point where you enter your password and click the "Log in" button. If you have selected to automatically login, they similarly launch just after you would have otherwise clicked the "Log in" button.

If you log out of your account, and re-log in, the items in your Login Items list are launched again?even if you are not doing a full restart of your Mac.

If there are multiple user accounts on your Mac, each user maintains their own Login Items list. So what launches when you log in is not necessarily what launches when some one else logs in.

Login Items are not usually files that specifically require to be launched at login to work. They can be ordinary applications or documents that could be launched at any other time as well. If an item is a document, it will open via its default application. You can even select a folder as a Login Item, although all this does is have the folder window open in the Finder.

Login Items have always been a part of Mac OS X. However, Apple changed their name to Startup Items in Panther. This was an annoying source of confusion, as there was an entirely different category of file also called Startup Items. Happily, in Tiger, Apple reverted to calling them Login Items again.

Q. Why would I want to add a file to my Login Items list?

Mainly for convenience and saving time. Here are three common more specific reasons to use Login Items:

  • Launch applications at login that you always want running. These are typically utilities that modify the way Mac OS X works. For example, on my Mac, Default Folder X (a utility that adds options to Open and Save dialog boxes) and Snapz Pro X (an alternative to Mac OS X?s built-in screen capture commands) are among the files that I have on my Login Items list.

  • Run a script that you want to execute each time you log in. You may have created an Automator workflow, AppleScript file or Unix shell script to perform some action that you would like run each time you login (perhaps something as simple as executing the Finder?s Empty Trash command, just to make sure it is periodically emptied). Adding an self-executable version of the file (such as an AppleScript applet or an Automator application) to the Login Items list is all you need to do to make sure the task is carried out as desired.

  • Automatically open a set of files that you are currently working on. Suppose you are using Keynote to create a presentation. In addition, you are using Excel to create charts to be included as part of the presentation, as well as iPhoto for pictures to be added. Until your presentation is done, you want all three applications, plus the relevant documents, to open automatically each time you log in. That way, you are ready for action as soon as login is over. After adding the needed files to your Login Items list, you can get a cup of coffee while everything is taken care of for you.

Q. How do I check to see what Login Items I currently have on my list?

Launch System Preferences and click to open the Accounts System Preference pane. From the row of tab buttons, select Login Items.

This will bring up a list of items preceded by the text: "These items will automatically open when you log in." That's your Login Items list. If nothing is in the list, you have no Login Items at the moment.

Note: You can only access the Login Items list for the currently logged-in account (presumably your own account). If you click the name of any other user in the left-side column of the Accounts pane, even if you are an administrator, Login Items will vanish from the selections in the tab bar.

{Figure 1: A Login Items list}

Q. How do I add an item to the Login Items list?

There are at least 3 ways to manually add a new Login Item to the list:

  • Add it from the Login Items window. From the Login Items window in the Accounts pane, click the Add ( ) button at the bottom of the window. An Add sheet will drop down. Navigate to the file you want to select and click the Add button.

    Alternatively, you can simply drag a file's icon from its Finder window to the Login Items list.

  • Add it from the Dock. If the item is currently in the Dock, click-hold the icon to bring up its Dock menu. One of the items in the menu will be Open at Login. Select it.

  • Add it from the software's Preferences options. Some programs include an option to add themselves (or some related software) to the Login Items list. For example, if you want Default Folder X to run at login, just select the " Enable at Login" option from its System Preferences pane window.

    In some cases, a similar option may appear only when you first install the application.

{Figure 2: The Open at Login command in an application' s Dock menu}

Q. Each item in the Login Items list has a Hide checkbox in front of its name. What happens if I check it?

Not much. All this does is ensure that, after the application launches, it remains " hidden" ? in the same way that an application is hidden if you select " Hide {name of application}" from the program?s application menu (such as " Hide Finder" from the Finder menu). This " hides" the program?s open windows from view, reducing screen clutter (although the windows remain open and will reappear when you " unhide " the application).

If a Login Item is not something that normally appears in the Dock (and thus does not have any user-accessible menus or windows), enabling its Hide option should have no discernible effect.

Q. I have never added any items to the Login Items list. Yet there are items listed there. Why and how did they get there?

As I indicated at the top of this article, some applications may automatically add themselves (or some related component software) to the Login Items list, either when your install the software or when you select a Preferences options. The application may even do this without telling you?although it is poor etiquette to do so. Preferably, you should always be given the option to add or not add a Login Item, or at least be informed that the addition is taking place.

As to why these items get added in the first place, it is generally because the given program requires that the listed item be always running in the background for some aspect of the program to work. For example, a calendar program may need a Login Item listing to activate a background process for reminding you of upcoming appointments even when the main program is not open.

Q. Some of the items in my Login Items list have names that I do not recognize. Even when I search for them with Spotlight, they are not found. What are they and where are they located?

These are almost always items that have been placed on the list " automatically" by an application or System Preferences pane, as just described. The reason you can?t find them is that they are contained within the software's " package." That is, most Mac OS X applications (and all System Preferences panes), as seen from the Finder, are really a special type of folder called a package. To access the contents of these package folders, you can use the Show Package Contents contextual menu item. The file listed in the Login Items will typically be found inside, most often in a subfolder called Resources.

For example, the iTunes package (actually named iTunes.app), in addition to housing the iTunes application, contains a related application called iTunesHelper. Its full path is: /Applications/iTunes.app/Contents/Resources/iTunesHelper.app. This file is added to the Login Items list the first time you launch iTunes.

Similarly, the Default Folder X System Preferences pane is a package that contains an application called Default Folder X BG. The application gets installed as a Login Item when you select Default Folder?s " Enable at Login" option. This application is what makes sure Default Folder X is already running when you log in.

One way to find exactly where these items are located is to place the cursor over the name of the item in the Login Items list and wait for the yellow tooltip text to appear. The text will be the path listing of the item. To go to the folder containing the item either (a) navigate there in the Finder, by opening folders and using the Show Package Contents contextual menu item to get inside the indicated package as needed, or (b) use the Finder' s Go to Folder command and enter the pathway shown in the tooltip (minus the name of the Login Items file itself).

{Figure 3: Login Items tooltip text}

Q. How do I remove an item from the Login Items list?

At some point, you may decide that you no longer want an item in the Login Items list. For example, perhaps you deleted a listed item from your drive. To remove any item: select its name in the Login Items list and click the Delete (?) button.

Alternatively, for items that were added by an " Enable at Login" preferences option, unchecking the preference will remove the item from the list.

Remember: Removing an item from the Login Items list does not delete it from your drive. It just deletes it from the list. If you have not separately trashed the item, it remains on your drive, exactly where it was before.

Q. I removed one of the files located inside an application package from my Login Items list. Now I?ve changed my mind and want to re-add it. How do I do it?

If the item can be re-added by accessing an " Enable at Login" option from the application' s Preferences, this is the quickest route to success.

Otherwise, you' ll have to work a bit harder. Remember that you cannot use the Login Items' Add ( ) button here, as the resulting Add dialog (as with the Finder' s Open and Save dialogs) does not navigate into packages. In this case, you have several options:

  • If you know exactly where to find the file, go there and drag the file' s icon to the Login Items list. Done!

  • If you are unsure where to find the file, but remember the name of the file (or at least a close approximation to it), trying using a third-party utility such as Locator to find it. Unlike Spotlight, Locator will search inside packages. Once you have the location, go there and drag the item to the Login Items list.

  • Uninstall and reinstall the relevant software. If the item was automatically added to the Login Items list when it was first installed, it will likely be added again.

Note: In the case of the aforementioned iTunesHelper, there is another trick to getting it to re-add: Go to the Library/Preferences folder in your Home directory. Look for a file named com.apple.iTunesHelper.plist. Delete it. Now, the next time you launch iTunes, the Helper application should be re-added to the Login Items list (I said "should" because this occasionally does not work).

In next month' s tutorial, we'll continue our look at Login Items. Specifically, you' ll learn what it do if a Login Item has a Kind of "Unknown" ; where the list of Login Items is actually stored on your drive; how to create a Login Items list that works for all users on your Mac; how to troubleshoot Login Items; and a few more surprises.

Like what you've found in this tutorial? Get more troubleshooting guidance (updated daily) by subscribing to MacFixIt Pro.

Resources

  • More from Tutorials
  • Recent posts from MacFixIt
    iTunes 10 user interface sees some minor changes
    Apple seeds iOS 4.1 Gold Master to developers
    Possible fix for Harman Kardon iSub problems with PowerPC Macs
    Precautions to take before installing iTunes 10
    A reminder on how to reset your Mac's system password
    Mail messages appearing blank
    Adobe Lightroom update brings direct Facebook publishing; Camera Raw 6.2 released
    Weekly troubleshooting utilities update
    Add a Comment (Log in or register) Showing 1 of 2 pages (24 Comments)
    by Jim M. August 18, 2005 9:11 AM PDT
    <i>"Q. I have never added any items to the Login Items list. Yet there are
    items listed there. Why and how did they get there?"</i>

    What items in addition to the already noted "iTunesHelper" are placed in the
    Login Items list by the OS X system itself and Apple applications? In other
    words, what "<b>should</b>" be there?

    E.g., I see these:

    iCalAlarmScheduler
    SpeechSynthesisServer
    iTunesHelper
    System Events

    Is that a complete <i>"default"</i> list? It would be handy to have this for
    reference purposes...
    <br>
    Reply to this comment
    by jeffforbes August 18, 2005 9:11 AM PDT
    <class="merchant"><span>&#62;</span><div class="datestamp"><i>This is a reply to a previous comment by Jim M.</i></div></class><br />
    My includes something called "Transport monitor", which has been there at least
    since Jaguar, but I don't actually know what it does.
    Reply to this comment
    by Joe Saponare August 18, 2005 9:11 AM PDT
    <class="merchant"><span>&#62;&#62;</span><div class="datestamp"><i>This is a reply to a previous comment by jeffforbes</i></div></class><br />
    Like the article suggests, you can hover over the unknown app in the Login
    Items list to see a tooltip with the path to the file. The one you mentioned is
    installed with Palm Desktop. If you don't use Palm, you can remove the item.
    Reply to this comment
    by August 18, 2005 9:34 AM PDT
    Anyone know why you can no longer change the order of items by dragging
    an item in the Login Items window? It worked in all previous versions of OS X
    but not in OS X 10.4.x
    Reply to this comment
    by BGiles August 18, 2005 9:34 AM PDT
    <class="merchant"><span>&#62;</span><div class="datestamp"><i>This is a reply to a previous comment by butisitart</i></div></class><br />
    In my experience, it never worked very well in previous OS versions either.
    Basically, all the login items are launched simultaneously, or very nearly so.
    The advantage of this is that your login time is reduced substantially.

    There's maybe a few milliseconds of difference between the start times of the
    different login items, but that's about it. And when they finish launching is
    dependent on just what those login items do as they're starting up. So, even
    if you could specify a launch order, an item at the end of the list may finish
    launching long before an item at the start of the list.

    If you really want to control this, your best bet is to write an AppleScript, or
    create an Automator action, which launches the items in the order you want,
    with appropriate delays between each item. Then put that script or action in
    your login items.
    Reply to this comment
    by John Sawyer August 18, 2005 9:34 AM PDT
    <class="merchant"><span>&#62;&#62;</span><div class="datestamp"><i>This is a reply to a previous comment by BGiles</i></div></class><br />
    Here's an example Applescript that I wrote some time back, when I first had trouble with Login Items not launching things in the order I needed, with delays so they don't collide with each other during launch. Save it as an application, not an application bundle, and don't choose the Script Editor's Save window's options for "run only" or "stay open". Sorry about the lack of compiled Applescript formatting, but the Macfixit comments editor window strips that out, and if I tried to simulate it with spaces, etc., someone might find that if they copy and paste such a simulated script into Script Editor, it might not work.

    I have my "To do" list open last, so it's what gets displayed frontmost when the script is finished running.

    delay 10
    (* This initial delay gives you a little time to halt this script launching, by entering Command-Period, or switching to it and selecting Quit from its File menu, in case you don't want it to launch sometimes. It also serves as an initial delay after the Finder appears that I think is wise to wait, to allow OS X startup to settle down before launching your apps. Butler is one app that needs to launch last, because Butler can sometimes take a long time to start up, which often interferes with launching other apps; however, I haven't had problems opening documents in already-opened apps after Butler has been told to launch.*)
    tell application "Finder"
    activate
    open file "Microsoft Word" of folder "Microsoft Office 2004" of folder "Applications" of folder "Macintosh HD"
    delay 12
    open file "Camino" of folder "Camino" of folder "Applications" of folder "Macintosh HD"
    delay 7
    open file "Mail" of folder "Applications" of folder "Macintosh HD"
    delay 8
    open file "Butler" of folder "Butler" of folder "Utilities" of folder "Applications" of folder "Macintosh HD"
    delay 20
    open file "To do today" of folder "Macintosh HD"
    end tell
    Reply to this comment
    by barhar80 August 18, 2005 9:34 AM PDT
    <class="merchant"><span>&#62;&#62;</span><div class="datestamp"><i>This is a reply to a previous comment by BGiles</i></div></class><br />
    No version, including v. 10.4.2, of MacOS X has ever 'launched
    simultaneously' items in the 'Startup items' / 'Login-items' list or elsewhere
    for that matter. Never.

    And, the order, of applications / utilities in the 'Startup items' / 'Login-items'
    list, does matter.
    Ask anyone who has 'Little Snitch' installed; which, must be the first item and
    launched prior to any other item in the list; otherwise, its purpose would be
    circumvented - by any application(s), also in the list whose operation be
    monitored and controlled by 'Little Snitch', being launched prior to 'Little
    Snitch'.

    The NeXT STEP'pers at Apple screwed up, and Apple's quality control is
    basically nil. I guess you are aware of 'Security Update 2005-007 v.1.1' just
    released today? ... just two days after 'Security Update 2005-007'?
    All Apple has to do is fix 'Tiger's 'Login items' feature in 10.4.3 or 10.4.4.
    Hopefully, before the next $129 installment plan release.

    While on the subject of asynchronous operations, the NeXT STEP'pers still
    have yet to make 'Finder' provide true preemptive multitasking. Ever wonder
    why, unlike in System 9.2.2 - with its cooperative multitasking, with MacOS X
    - you cannot add to, or open the trash can, while it is being emptied? Or,
    how about when 'Finder' goes into La-La land and the Microsoft color
    spinning ball from hell spins about? - is that your idea of an asynchronous
    operation? Funny, how the most advanced MacOS still cannot perform the
    functions of, or better than, its predecessor.

    Note:
    MacOS X has many nice features; however, I am still hopeful of a final version
    (out of beta testing) release MacOS X before or around the time Longhorn /
    Vista is.
    Reply to this comment
    by montylee August 18, 2005 9:34 AM PDT
    <class="merchant"><span>&#62;</span><div class="datestamp"><i>This is a reply to a previous comment by butisitart</i></div></class><br />
    Exactly! I had no problem changing the order in previous versions, but Tiger it
    does not work at all. I've even done a clean install and it still doesn't work.

    I like the login items option, but it looses it's value when you can't specify the
    order.

    Since this is Part I of this MacFixIt report, perhaps a way to edit the plist (or
    whatever) to change the order might be warranted.

    Monty
    Reply to this comment
    by barrom August 18, 2005 10:14 AM PDT
    The problem mentioned by eMac is noted in the Apple forums. Apple's
    documentation still claims it is possible to reorder Login Items, but in all
    current versions of Tiger, you can't. Some forum posters have posited that
    this is the intended behavior, as Login Items now launch asynchronously. The
    logic here is that, if all items launch at the same time, there is no point in
    changing their list order.

    The relavent posts:
    http://discussions.info.apple.com/webx?14@685.ivq0alvQ64a.4@.68aec0bd
    http://discussions.info.apple.com/webx?128@685.ivq0alvQ64a.3@.68adc9ad

    Interestingly, both topics are "locked."

    It would be great if the fine folks at MacFixit could clear this little mystery up
    for us and mention it in the follow up to this article.
    Reply to this comment
    by afperry August 18, 2005 11:47 AM PDT
    Q. Each item in the Login Items list has a Hide checkbox in front of its name.
    What happens if I check it?

    Not just "not much" but " not anything" if its either Mail or iChat AV with Tiger!
    These two apps refuse to Hide when their tick box is checked, something that
    didn't occur with Panther. I have tried this out on several Macs and have spoken
    to Apple about it but these two recalcitrants still insist on doing things their
    way..... Anyone else noticed this?
    Reply to this comment
    by Nirm20 August 18, 2005 11:47 AM PDT
    <class="merchant"><span>&#62;</span><div class="datestamp"><i>This is a reply to a previous comment by afperry</i></div></class><br />
    I have noticed something similar. Not with any application but it does the
    same thing with a folder share that I have setup to connect to my other mac
    over the network. I created the shares using SharePoints and mapped it
    manually at first, dragged them into the Login Items and checked the "Hide"
    option. When I restarted, it mapped the share but doesnt hide it. It would be
    nice to just have the icons on the desktop instead of opening them all up at
    startup automatically.

    I thing this was happening in 10.3 also.

    Maybe instead of asking apple to fix it, maybe I can try find some kind of
    script to hide them all after they open :) and add that to the startup items or
    as they like to call it "Login Items" :)
    Reply to this comment
    by amcgee August 18, 2005 2:47 PM PDT
    1. You should never hide items that run as menu bar items, because hiding
    them at launch disables those items, or rather, prevents the menu bar item
    from being accessed. You should only hide menuless background processes
    and apps that display primarily in the dock. The exceptions are apps like
    QuickSilver, which have both menu bar and dock items, and you can hide
    those at launch, but you'll have to unhide the app before the menu bar item
    will work.

    2. The order of login items does matter, or at least it did, because often, the
    ability to determine the order in which menu bar items load i important in
    being able to see certain items even when you've run out of menu bar real
    estate. There are some items you want loaded first, as far right as possible,
    so you can always see them, while others can load later, and you don't mind if
    the long menu of an application cuts them off.
    Reply to this comment
    by Full Score August 18, 2005 2:47 PM PDT
    <class="merchant"><span>&#62;</span><div class="datestamp"><i>This is a reply to a previous comment by amcgee</i></div></class><br />
    Being able to change the order used to be very important as far as QuicKeys was
    concerned. By placing it last in the list I avoided many problems under 10.3 and
    earlier.
    Perhaps MacFixIt could find out definitively from Apple why order change is no
    longer implemented.
    Reply to this comment
    by huggie August 18, 2005 4:26 PM PDT
    Sometimes I want to restart my computer but don't want all the startup items
    opened at login. Is there a way to disable the login startup without removing all
    the startup items from the list?
    Reply to this comment
    by Digital Jim August 18, 2005 4:26 PM PDT
    <class="merchant"><span>&#62;</span><div class="datestamp"><i>This is a reply to a previous comment by huggie</i></div></class><br />
    "Safe Boot" by holding the shift key throughout startup.
    Reply to this comment
    by KroSha August 18, 2005 4:26 PM PDT
    <class="merchant"><span>&#62;&#62;</span><div class="datestamp"><i>This is a reply to a previous comment by Digital Jim</i></div></class><br />
    You don't need to Safe Boot. Just hold the shift key down immediately after you
    click Login. This is a little harder if you are on auto-login; try immediately after
    the boot progress bar disappears.
    Reply to this comment
    by cravebrad August 18, 2005 4:26 PM PDT
    <class="merchant"><span>&#62;&#62;&#62;</span><div class="datestamp"><i>This is a reply to a previous comment by KroSha</i></div></class><br />
    With Tiger, I find the SHIFT key at login option doesn't work - the items launch
    anyway. This did work in Panther.
    Reply to this comment
    by versiontracker49 August 18, 2005 9:46 PM PDT
    I have a background process running that starts when I login (the process is owned by me) but does not show in the login items list.

    The process is part of the Nikon View program, which launches the Nikon software whenever my camera is plugged in. Since I don't use their software for managing my pictures it's very annoying and I cannot find how to remove it.

    Are there any other places software like this can hide?

    Mark
    Reply to this comment
    by WhiteDog August 18, 2005 9:46 PM PDT
    <class="merchant"><span>&#62;</span><div class="datestamp"><i>This is a reply to a previous comment by versiontracker49</i></div></class><br />
    As mentioned in the article, you will probably find the startup item you're
    looking for inside the application package. Of course, the first place to look is
    in the application preferences. If you don't use Nikon View, the simplest way to
    remove the login item would probably be to trash the program entirely. You
    can always reinstall it later if you need it for some reason. If you decide to take
    this route, don't forget to remove the Nikon View plist file from the /Library/
    Applications Support/Nikon folder.

    ---
    Don't anthropomorphize computers.
    They hate that.
    Reply to this comment
    by june8 August 18, 2005 9:46 PM PDT
    <class="merchant"><span>&#62;</span><div class="datestamp"><i>This is a reply to a previous comment by versiontracker49</i></div></class><br />
    It is Nikon View Monitor Carbon and should be removed from the file /Library/
    Preferences/loginwindow.plist
    Reply to this comment
    Showing 1 of 2 pages (24 Comments)