Platforms to show: All Mac Windows Linux Cross-Platform

LoginItemsMBS class   Deprecated

Type Topic Plugin Version macOS Windows Linux iOS Targets
class Login Items MBS MacOSX Plugin 7.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
This item is deprecated and should no longer be used. You can use LSSharedFileListMBS instead.
A class to handle login items on Mac OS X.

After creating a new object, the constructor may fail sometimes while updateing the list. lasterror is -609 in that case. His happens most likely just after login when the system events process is not yet ready. In that case, let your app wait a few seconds and try again.

For newer Mac OS X versions, please use LSSharedFileListMBS class instead.

  • 3 properties
  • 16 methods
    • method AddFile(file as FolderItem, hidden as boolean=false) as boolean
    • method AddURL(url as string, hidden as boolean=false) as boolean
    • method DisplayName(index as Integer) as String
    • method File(index as Integer) as FolderItem
    • method IsHidden(index as Integer) as boolean
    • method Name(index as Integer) as String
    • method OldAddLoginItem(file as folderitem,hide as boolean,allusers as boolean) as boolean
    • method OldCountOfLoginItems(allusers as boolean) as Integer
    • method OldLoginItemPropertyAtIndex(what as Integer, index as Integer, allusers as boolean) as string
    • method OldRemoveLoginItem(file as folderitem,allusers as boolean) as boolean
    • method OldRemoveLoginItemAtIndex(index as Integer, allusers as boolean) as boolean
    • method Remove(index as Integer) as boolean
    • method RemoveFile(file as FolderItem) as boolean
    • method RemoveURL(url as string) as boolean
    • method Update
    • method URL(index as Integer) as String

This class has no sub classes.

Some examples using this class:

Blog Entries

Release notes


The items on this page are in the following plugins: MBS MacOSX Plugin.


LocaleMBS   -   LSSharedFileListItemMBS


The biggest plugin in space...