Platforms to show: All Mac Windows Linux Cross-Platform

Back to AliasInfoMBS class.

AliasInfoMBS.InfoForAliasData(data as string) as AliasInfoMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Alias MBS MacClassic Plugin 13.1 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Query information for alias data.
Example
dim folder as FolderItem = SpecialFolder.Desktop
dim m as new MacAliasMBS
dim error as Integer = m.Create(nil, folder)
if error = 0 then
dim data as string = m.GetRecord
dim info as AliasInfoMBS = AliasInfoMBS.InfoForAliasData(data)
MsgBox info.PathString
else
MsgBox "Failed to create the alias. Error "+str(error)
end if

Returns nil on any error.

AliasInfoMBS.InfoForSaveInfo(data as string) as AliasInfoMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Alias MBS MacClassic Plugin 13.1 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Query information about alias in SaveInfo.
Example
dim folder as FolderItem = SpecialFolder.Desktop
dim SaveInfo as string = folder.GetSaveInfo(nil, FolderItem.SaveInfoDefaultMode)
dim info as AliasInfoMBS = AliasInfoMBS.InfoForSaveInfo(SaveInfo)
MsgBox info.PathString

This is for saveinfo data returns by GetSaveInfo function in folderitem class.
Returns nil on any error.

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


The biggest plugin in space...