MBS Plugin Documentation
Statistics - FAQ - Plugin Parts (All, Dependencies) - Class hierarchie
New in Version 7.0 7.1 7.2 7.3 7.4 7.5 7.6 7.7 7.8 8.0 8.1 8.2 8.3 8.4 8.5 8.6 8.7 9.0
The list of the themes, classes, controls, modules, global methods by category, global methods by name, screenshots, licenses and examples.
Platforms to show: All Mac Windows Linux Cross-Platform
class FileListMBS
class, Files, MBS Util Plugin (FileList), class FileListMBS, Console safe, Plugin version: 5.1, Mac OS X: Works, Windows: Works, Linux x86: Does nothing, Feedback.
Function: A class for a list of files.
Notes: This class is made to get a list of files in a folder faster than by using a folderitem.
class, Files, MBS Util Plugin (FileList), class FileListMBS, Console safe, Plugin version: 5.1, Mac OS X: Works, Windows: Works, Linux x86: Does nothing, Feedback.
Function: A class for a list of files.
Notes: This class is made to get a list of files in a folder faster than by using a folderitem.
FileListMBS.Close
method, Files, MBS Util Plugin (FileList), class FileListMBS, Console safe, Plugin version: 5.1, Mac OS X: Works, Windows: Works, Linux x86: Does nothing, Feedback.
Function: The destructor.
Notes:
There is no need to call this method except you want to free all resources of this object now without waiting for Realbasic to do it for you.
(e.g. some Realbasic versions crash on Windows if there are plugin objects not closed.)
method, Files, MBS Util Plugin (FileList), class FileListMBS, Console safe, Plugin version: 5.1, Mac OS X: Works, Windows: Works, Linux x86: Does nothing, Feedback.
Function: The destructor.
Notes:
There is no need to call this method except you want to free all resources of this object now without waiting for Realbasic to do it for you.
(e.g. some Realbasic versions crash on Windows if there are plugin objects not closed.)
FileListMBS.Constructor
method, Files, MBS Util Plugin (FileList), class FileListMBS, Console safe, Plugin version: 5.4, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.
Function: A dummy constructor used only for automatic plugin testing.
method, Files, MBS Util Plugin (FileList), class FileListMBS, Console safe, Plugin version: 5.4, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.
Function: A dummy constructor used only for automatic plugin testing.
FileListMBS.Constructor(filelist as FileListMBS, index as integer)
method, Files, MBS Util Plugin (FileList), class FileListMBS, Console safe, Plugin version: 6.1, Mac OS X: Works, Windows: Works, Linux x86: Does nothing, Feedback.
Function: The constructor which creates a new file list based on item in a given file list.
Notes: If count is 0 after the contrustor the folder is invalid or empty.
method, Files, MBS Util Plugin (FileList), class FileListMBS, Console safe, Plugin version: 6.1, Mac OS X: Works, Windows: Works, Linux x86: Does nothing, Feedback.
Function: The constructor which creates a new file list based on item in a given file list.
Notes: If count is 0 after the contrustor the folder is invalid or empty.
FileListMBS.Constructor(folder as folderitem)
method, Files, MBS Util Plugin (FileList), class FileListMBS, Console safe, Plugin version: 5.1, Mac OS X: Works, Windows: Works, Linux x86: Does nothing, Feedback.
Function: The constructor which creates a new file list based on the folder.
Notes: If count is 0 after the contrustor the folder is invalid or empty.
method, Files, MBS Util Plugin (FileList), class FileListMBS, Console safe, Plugin version: 5.1, Mac OS X: Works, Windows: Works, Linux x86: Does nothing, Feedback.
Function: The constructor which creates a new file list based on the folder.
Notes: If count is 0 after the contrustor the folder is invalid or empty.
FileListMBS.Count as Integer
property, Files, MBS Util Plugin (FileList), class FileListMBS, Console safe, Plugin version: 5.1, Mac OS X: Works, Windows: Works, Linux x86: Does nothing, Feedback.
Function: The number of items found.
Notes:
So index goes from 0 to count-1 in all functions.
(Read and Write property)
property, Files, MBS Util Plugin (FileList), class FileListMBS, Console safe, Plugin version: 5.1, Mac OS X: Works, Windows: Works, Linux x86: Does nothing, Feedback.
Function: The number of items found.
Notes:
So index goes from 0 to count-1 in all functions.
(Read and Write property)
FileListMBS.CreationDate(index as integer) as double
method, Files, MBS Util Plugin (FileList), class FileListMBS, Console safe, Plugin version: 5.1, Mac OS X: Works, Windows: Works, Linux x86: Does nothing, Feedback.
Function: The creation date.
Notes:
On Mac OS the UTC date (+0 time zone)
On Windows looks like local timezone.
method, Files, MBS Util Plugin (FileList), class FileListMBS, Console safe, Plugin version: 5.1, Mac OS X: Works, Windows: Works, Linux x86: Does nothing, Feedback.
Function: The creation date.
Notes:
On Mac OS the UTC date (+0 time zone)
On Windows looks like local timezone.
FileListMBS.Creator(index as integer) as string
method, Files, MBS Util Plugin (FileList), class FileListMBS, Console safe, Plugin version: 5.1, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.
Function: The Mac Creator code of the item with the given index.
Notes: Always "" on Windows.
method, Files, MBS Util Plugin (FileList), class FileListMBS, Console safe, Plugin version: 5.1, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.
Function: The Mac Creator code of the item with the given index.
Notes: Always "" on Windows.
FileListMBS.Directory(index as integer) as boolean
method, Files, MBS Util Plugin (FileList), class FileListMBS, Console safe, Plugin version: 5.1, Mac OS X: Works, Windows: Works, Linux x86: Does nothing, Feedback.
Function: Whether the item with the given index is a folder.
Notes:
True if it is a folder.
False if not or out of bounds.
method, Files, MBS Util Plugin (FileList), class FileListMBS, Console safe, Plugin version: 5.1, Mac OS X: Works, Windows: Works, Linux x86: Does nothing, Feedback.
Function: Whether the item with the given index is a folder.
Notes:
True if it is a folder.
False if not or out of bounds.
FileListMBS.DisplayName(index as integer) as string
method, Files, MBS Util Plugin (FileList), class FileListMBS, Console safe, Plugin version: 5.1, Mac OS X: Works, Windows: Works, Linux x86: Does nothing, Feedback.
Function: The display name of the item with the given index.
Notes:
Asks the System for the display name of the item. Returns the normal name on any error.
As this call may cost quite some CPU time you may cache the value if you need it more often.
May return a Unicode string, so be carefull with encoding.
Returns "" on any error.
method, Files, MBS Util Plugin (FileList), class FileListMBS, Console safe, Plugin version: 5.1, Mac OS X: Works, Windows: Works, Linux x86: Does nothing, Feedback.
Function: The display name of the item with the given index.
Notes:
Asks the System for the display name of the item. Returns the normal name on any error.
As this call may cost quite some CPU time you may cache the value if you need it more often.
May return a Unicode string, so be carefull with encoding.
Returns "" on any error.
FileListMBS.FinderFlags(index as integer) as Integer
method, Files, MBS Util Plugin (FileList), class FileListMBS, Console safe, Plugin version: 6.1, Mac OS X: Works, Windows: Works, Linux x86: Does nothing, Feedback.
Function: The Finder flags from Mac OS.
Notes:
On Windows and Linux value is 0.
The flag value is a set of bits with the following meaning:
method, Files, MBS Util Plugin (FileList), class FileListMBS, Console safe, Plugin version: 6.1, Mac OS X: Works, Windows: Works, Linux x86: Does nothing, Feedback.
Function: The Finder flags from Mac OS.
Notes:
On Windows and Linux value is 0.
The flag value is a set of bits with the following meaning:
| bit 15 | value &H8000 | isAlias |
| bit 14 | value &H4000 | isInvisible |
| bit 13 | value &H2000 | hasBundle (has a BNDL resource) |
| bit 12 | value &H1000 | nameLocked |
| bit 11 | value &H0800 | isStationary |
| bit 10 | value &H0400 | hasCustomIcon |
| bit 8 | value &H0100 | hasBeenInited (Finder has seen the file since it has been created) |
| bit 7 | value &H0080 | hasNoINITs (there is no INIT rsrc in the Extension file) |
| bit 6 | value &H0040 | isShared |
| bits 1-3 | value &H000E | color (as a 3-bit value from 0-7) |
FileListMBS.Folder as Folderitem
property, Files, MBS Util Plugin (FileList), class FileListMBS, Console safe, Plugin version: 5.1, Mac OS X: Works, Windows: Works, Linux x86: Does nothing, Feedback.
Function: The folderitem used in the constructor.
Notes: (Read and Write property)
property, Files, MBS Util Plugin (FileList), class FileListMBS, Console safe, Plugin version: 5.1, Mac OS X: Works, Windows: Works, Linux x86: Does nothing, Feedback.
Function: The folderitem used in the constructor.
Notes: (Read and Write property)
FileListMBS.FSRef(index as integer) as memoryblock
method, Files, MBS Util Plugin (FileList), class FileListMBS, Console safe, Plugin version: 5.2, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.
Function: The FSRef used for this item.
Notes:
Returns nil if no FSRef is kept for this item.
On Mac OS there is a FSSpec or (FSRef and HFSUniStr255).
method, Files, MBS Util Plugin (FileList), class FileListMBS, Console safe, Plugin version: 5.2, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.
Function: The FSRef used for this item.
Notes:
Returns nil if no FSRef is kept for this item.
On Mac OS there is a FSSpec or (FSRef and HFSUniStr255).
FileListMBS.FSSpec(index as integer) as memoryblock
method, Files, MBS Util Plugin (FileList), class FileListMBS, Console safe, Plugin version: 5.2, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.
Function: The FSSpec used for this item.
Notes:
Returns nil if no FSSpec is kept for this item.
On Mac OS there is a FSSpec or (FSRef and HFSUniStr255).
method, Files, MBS Util Plugin (FileList), class FileListMBS, Console safe, Plugin version: 5.2, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.
Function: The FSSpec used for this item.
Notes:
Returns nil if no FSSpec is kept for this item.
On Mac OS there is a FSSpec or (FSRef and HFSUniStr255).
FileListMBS.HFSUniStr255(index as integer) as memoryblock
method, Files, MBS Util Plugin (FileList), class FileListMBS, Console safe, Plugin version: 5.2, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.
Function: The HFSUniStr255 used for this item.
Notes:
Returns nil if no HFSUniStr255 is kept for this item.
On Mac OS there is a FSSpec or (FSRef and HFSUniStr255).
method, Files, MBS Util Plugin (FileList), class FileListMBS, Console safe, Plugin version: 5.2, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.
Function: The HFSUniStr255 used for this item.
Notes:
Returns nil if no HFSUniStr255 is kept for this item.
On Mac OS there is a FSSpec or (FSRef and HFSUniStr255).
FileListMBS.IsBundle(index as integer) as Boolean
method, Files, MBS Util Plugin (FileList), class FileListMBS, Console safe, Plugin version: 6.1, Mac OS X: Works, Windows: Works, Linux x86: Does nothing, Feedback.
Function: Queries using LaunchServices whether this item is a folder and the root of a bundle.
Example:
method, Files, MBS Util Plugin (FileList), class FileListMBS, Console safe, Plugin version: 6.1, Mac OS X: Works, Windows: Works, Linux x86: Does nothing, Feedback.
Function: Queries using LaunchServices whether this item is a folder and the root of a bundle.
Example:
Protected Sub Dir(f as FolderItem)
dim l as FileListMBS
dim i,c as integer
// search subfolders and find bundles
l=new FileListMBS(f)
c=l.Count-1
for i=0 to c
// if bundle, show it in listbox
if l.IsBundle(i) then
ListBox1.AddRow l.Item(i).AbsolutePath
elseif l.Directory(i) then
// if sub folder, browse it
dir l.Item(i)
end if
next
End Sub
Notes: On Windows, Linux and Mac OS Classic always false.FileListMBS.Item(index as integer) as folderitem
method, Files, MBS Util Plugin (FileList), class FileListMBS, Console safe, Plugin version: 5.1, Mac OS X: Works, Windows: Works, Linux x86: Does nothing, Feedback.
Function: Creates a folderitem for the item with the given index.
Notes:
Returns nil on any error.
The reason why you use this class is to avoid makeing folderitems which is slow, so don't use this function too often.
method, Files, MBS Util Plugin (FileList), class FileListMBS, Console safe, Plugin version: 5.1, Mac OS X: Works, Windows: Works, Linux x86: Does nothing, Feedback.
Function: Creates a folderitem for the item with the given index.
Notes:
Returns nil on any error.
The reason why you use this class is to avoid makeing folderitems which is slow, so don't use this function too often.
FileListMBS.LogicalDataLength(index as integer) as double
method, Files, MBS Util Plugin (FileList), class FileListMBS, Console safe, Plugin version: 5.1, Mac OS X: Works, Windows: Works, Linux x86: Does nothing, Feedback.
Function: The logical file data length for the item with the given index.
Notes: Same value as folderitem.length, but works with files >2GB.
method, Files, MBS Util Plugin (FileList), class FileListMBS, Console safe, Plugin version: 5.1, Mac OS X: Works, Windows: Works, Linux x86: Does nothing, Feedback.
Function: The logical file data length for the item with the given index.
Notes: Same value as folderitem.length, but works with files >2GB.
FileListMBS.LogicalResourceLength(index as integer) as double
method, Files, MBS Util Plugin (FileList), class FileListMBS, Console safe, Plugin version: 5.1, Mac OS X: Works, Windows: Works, Linux x86: Does nothing, Feedback.
Function: The logical resource length of the item with the given index.
method, Files, MBS Util Plugin (FileList), class FileListMBS, Console safe, Plugin version: 5.1, Mac OS X: Works, Windows: Works, Linux x86: Does nothing, Feedback.
Function: The logical resource length of the item with the given index.
FileListMBS.ModificationDate(index as integer) as double
method, Files, MBS Util Plugin (FileList), class FileListMBS, Console safe, Plugin version: 5.1, Mac OS X: Works, Windows: Works, Linux x86: Does nothing, Feedback.
Function: The modification date.
Notes:
On Mac OS the UTC date (+0 time zone)
On Windows looks like local timezone.
method, Files, MBS Util Plugin (FileList), class FileListMBS, Console safe, Plugin version: 5.1, Mac OS X: Works, Windows: Works, Linux x86: Does nothing, Feedback.
Function: The modification date.
Notes:
On Mac OS the UTC date (+0 time zone)
On Windows looks like local timezone.
FileListMBS.Name(index as integer) as string
method, Files, MBS Util Plugin (FileList), class FileListMBS, Console safe, Plugin version: 5.1, Mac OS X: Works, Windows: Works, Linux x86: Does nothing, Feedback.
Function: The name of the item with the given index.
Notes:
May return a Unicode string, so be carefull with encoding.
Returns "" on any error.
method, Files, MBS Util Plugin (FileList), class FileListMBS, Console safe, Plugin version: 5.1, Mac OS X: Works, Windows: Works, Linux x86: Does nothing, Feedback.
Function: The name of the item with the given index.
Notes:
May return a Unicode string, so be carefull with encoding.
Returns "" on any error.
FileListMBS.OK as Boolean
property, Files, MBS Util Plugin (FileList), class FileListMBS, Console safe, Plugin version: 6.3, Mac OS X: Works, Windows: Works, Linux x86: Does nothing, Feedback.
Function: Whether the process of reading the directory content in the constructor was successful.
Notes:
Should be true on success.
(Read and Write property)
property, Files, MBS Util Plugin (FileList), class FileListMBS, Console safe, Plugin version: 6.3, Mac OS X: Works, Windows: Works, Linux x86: Does nothing, Feedback.
Function: Whether the process of reading the directory content in the constructor was successful.
Notes:
Should be true on success.
(Read and Write property)
FileListMBS.PhysicalDataLength(index as integer) as double
method, Files, MBS Util Plugin (FileList), class FileListMBS, Console safe, Plugin version: 5.1, Mac OS X: Works, Windows: Works, Linux x86: Does nothing, Feedback.
Function: The physical data length of the item with the given index.
Notes: Returns 0 on any error.
method, Files, MBS Util Plugin (FileList), class FileListMBS, Console safe, Plugin version: 5.1, Mac OS X: Works, Windows: Works, Linux x86: Does nothing, Feedback.
Function: The physical data length of the item with the given index.
Notes: Returns 0 on any error.
FileListMBS.PhysicalResourceLength(index as integer) as double
method, Files, MBS Util Plugin (FileList), class FileListMBS, Console safe, Plugin version: 5.1, Mac OS X: Works, Windows: Works, Linux x86: Does nothing, Feedback.
Function: The physical resource length of the item with the given index.
Notes:
Value is always 0 on Windows.
Returns 0 on any error.
method, Files, MBS Util Plugin (FileList), class FileListMBS, Console safe, Plugin version: 5.1, Mac OS X: Works, Windows: Works, Linux x86: Does nothing, Feedback.
Function: The physical resource length of the item with the given index.
Notes:
Value is always 0 on Windows.
Returns 0 on any error.
FileListMBS.SortByCreationDate
method, Files, MBS Util Plugin (FileList), class FileListMBS, Console safe, Plugin version: 6.0, Mac OS X: Works, Windows: Works, Linux x86: Does nothing, Feedback.
Function: Sorts items in list by creation date.
method, Files, MBS Util Plugin (FileList), class FileListMBS, Console safe, Plugin version: 6.0, Mac OS X: Works, Windows: Works, Linux x86: Does nothing, Feedback.
Function: Sorts items in list by creation date.
FileListMBS.SortByModificationDate
method, Files, MBS Util Plugin (FileList), class FileListMBS, Console safe, Plugin version: 6.0, Mac OS X: Works, Windows: Works, Linux x86: Does nothing, Feedback.
Function: Sorts items in list by modification date.
method, Files, MBS Util Plugin (FileList), class FileListMBS, Console safe, Plugin version: 6.0, Mac OS X: Works, Windows: Works, Linux x86: Does nothing, Feedback.
Function: Sorts items in list by modification date.
FileListMBS.TrueItem(index as integer) as folderitem
method, Files, MBS Util Plugin (FileList), class FileListMBS, Console safe, Plugin version: 8.0, Mac OS X: Works, Windows: Works, Linux x86: Does nothing, Feedback.
Function: Creates a folderitem for the item with the given index.
Notes:
Returns nil on any error.
The reason why you use this class is to avoid makeing folderitems which is slow, so don't use this function too often.
TrueItem will on Windows use GetTrueFolderItem instead of GetFolderItem so the link files are not resolved by Realbasic.
method, Files, MBS Util Plugin (FileList), class FileListMBS, Console safe, Plugin version: 8.0, Mac OS X: Works, Windows: Works, Linux x86: Does nothing, Feedback.
Function: Creates a folderitem for the item with the given index.
Notes:
Returns nil on any error.
The reason why you use this class is to avoid makeing folderitems which is slow, so don't use this function too often.
TrueItem will on Windows use GetTrueFolderItem instead of GetFolderItem so the link files are not resolved by Realbasic.
FileListMBS.Type(index as integer) as string
method, Files, MBS Util Plugin (FileList), class FileListMBS, Console safe, Plugin version: 5.1, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.
Function: The Mac Type code of the item with the given index.
Notes: Always "" on Windows.
method, Files, MBS Util Plugin (FileList), class FileListMBS, Console safe, Plugin version: 5.1, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.
Function: The Mac Type code of the item with the given index.
Notes: Always "" on Windows.
FileListMBS.Visible(index as integer) as boolean
method, Files, MBS Util Plugin (FileList), class FileListMBS, Console safe, Plugin version: 5.1, Mac OS X: Works, Windows: Works, Linux x86: Does nothing, Feedback.
Function: Whether the item with the given index is visible.
Notes:
On Mac OS X, files with name starting with "." are considered to be invisible.
False on any error.
method, Files, MBS Util Plugin (FileList), class FileListMBS, Console safe, Plugin version: 5.1, Mac OS X: Works, Windows: Works, Linux x86: Does nothing, Feedback.
Function: Whether the item with the given index is visible.
Notes:
On Mac OS X, files with name starting with "." are considered to be invisible.
False on any error.
FileListMBS.WinFileAttributes(index as integer) as integer
method, Files, MBS Util Plugin (FileList), class FileListMBS, Console safe, Plugin version: 6.1, Mac OS X: Works, Windows: Works, Linux x86: Does nothing, Feedback.
Function: The file attributes for this file on Windows.
Notes: Value is 0 on other platforms or on invalid index.
method, Files, MBS Util Plugin (FileList), class FileListMBS, Console safe, Plugin version: 6.1, Mac OS X: Works, Windows: Works, Linux x86: Does nothing, Feedback.
Function: The file attributes for this file on Windows.
Notes: Value is 0 on other platforms or on invalid index.
The items on this page are in the following plugins: MBS Util Plugin.
Monkeybread Software Realbasic Plugins - Pfarrgemeinderat St. Arnulf Nickenich