Platforms to show: All Mac Windows Linux Cross-Platform

Back to LSSharedFileListItemMBS class.

LSSharedFileListItemMBS.DisplayName as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Login Items MBS MacFrameworks Plugin 9.8 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Obtain item's display name.
Example
dim l as new LSSharedFileListMBS(LSSharedFileListMBS.kRecentDocumentItems)

if l.Handle=0 then
MsgBox "Failed to get list."
else
dim a(-1) as LSSharedFileListItemMBS = l.Snapshot
dim lines(-1) as string

for each x as LSSharedFileListItemMBS in a
lines.append x.DisplayName
next

MsgBox Join(lines, EndOfLine)
end if

LSSharedFileListItemMBS.Icon as Variant

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Login Items MBS MacFrameworks Plugin 9.8 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Obtain item's icon.

Returns an IconMBS object.

LSSharedFileListItemMBS.ID as UInt32

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Login Items MBS MacFrameworks Plugin 9.8 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Obtain unique item id.
Example
dim l as new LSSharedFileListMBS(LSSharedFileListMBS.kSessionLoginItems)

if l.Handle=0 then
MsgBox "Failed to get list."
else
dim a(-1) as LSSharedFileListItemMBS = l.Snapshot
dim lines(-1) as string

for each x as LSSharedFileListItemMBS in a
lines.append x.DisplayName+": "+str(x.ID)
next

MsgBox Join(lines, EndOfLine)
end if

LSSharedFileListItemMBS.ItemHidden as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Login Items MBS MacFrameworks Plugin 9.8 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Is item hidden in UI?
Example
dim l as new LSSharedFileListMBS(LSSharedFileListMBS.kSessionLoginItems)

if l.Handle=0 then
MsgBox "Failed to get list."
else
dim a(-1) as LSSharedFileListItemMBS = l.Snapshot
dim lines(-1) as string

for each x as LSSharedFileListItemMBS in a
lines.append x.DisplayName+": "+str(x.ItemHidden)
next

MsgBox Join(lines, EndOfLine)
end if

(Read and Write computed property)

LSSharedFileListItemMBS.LoginItemHidden as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Login Items MBS MacFrameworks Plugin 9.8 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Should UI hide login item's window?
Example
dim l as new LSSharedFileListMBS(LSSharedFileListMBS.kSessionLoginItems)

if l.Handle=0 then
MsgBox "Failed to get list."
else
dim a(-1) as LSSharedFileListItemMBS = l.Snapshot
dim lines(-1) as string

for each x as LSSharedFileListItemMBS in a
lines.append x.DisplayName+": "+str(x.LoginItemHidden)
next

MsgBox Join(lines, EndOfLine)
end if

Requires Mac OS X 10.6.
(Read and Write computed property)

LSSharedFileListItemMBS.Resolve(flags as UInt32) as folderitem

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Login Items MBS MacFrameworks Plugin 9.8 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Resolve item and return its folderitem.
Example
dim l as new LSSharedFileListMBS(LSSharedFileListMBS.kRecentDocumentItems)

if l.Handle=0 then
MsgBox "Failed to get list."
else
dim a(-1) as LSSharedFileListItemMBS = l.Snapshot
dim lines(-1) as string

for each x as LSSharedFileListItemMBS in a
lines.append x.Resolve(0).NativePath
next

MsgBox Join(lines, EndOfLine)
end if

Pass values like 0, kNoUserInteraction, kDoNotMountVolumes or kDoNotMountVolumes+kNoUserInteraction.

LSSharedFileListItemMBS.ResolveURL(flags as UInt32) as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Login Items MBS MacFrameworks Plugin 9.8 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Resolve item and return its URL.
Example
dim l as new LSSharedFileListMBS(LSSharedFileListMBS.kRecentDocumentItems)

if l.Handle=0 then
MsgBox "Failed to get list."
else
dim a(-1) as LSSharedFileListItemMBS = l.Snapshot
dim lines(-1) as string

for each x as LSSharedFileListItemMBS in a
lines.append x.ResolveURL(x.kNoUserInteraction)
next

MsgBox Join(lines, EndOfLine)
end if

Pass values like 0, kNoUserInteraction, kDoNotMountVolumes or kDoNotMountVolumes+kNoUserInteraction.

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


The biggest plugin in space...