filecataloger.com > Script > Object -- File Catalog Item Object

File Catalog Item Object

Remarks:
The object represents a file catalog item in FileCataloger
Property:
Name Description
Parent Retrieve the parent catalog group of the file catalog item object.
Name Retrieve or set the name of the file catalog item object.
Comment Retrieve or set the Comment of the file catalog item object.
Caption Retrieve the caption of the file catalog item object.
CatalogType

Retrieve the integer value indicating the file catalog item type.

CatalogType_NOUSE = -1,
CatalogType_ROOT = 0,
CatalogType_CDROM = 1,
CatalogType_FILEITEM = 2,
CatalogType_FOLDER = 3,
CatalogType_LOCALDISK = 4,
CatalogType_MOVEDISK = 5,
CatalogType_SUBFOLDER = 6,
CatalogType_USERGROUP = 7,
CatalogType_SearchGroup = 8,
CatalogType_SOLOFILE = 9

ExtensionName Retrieve the extension name of the file catalog item object.
Size Retrieve the size of the file catalog item object.
LastWriteTime Retrieve the last write time of the file catalog item object.
CreationTime Retrieve the Creation time of the file catalog item object.
LastAccessTime Retrieve the last Access time of the file catalog item object.
CustomPropertyCount Retrieve the count of this file catalog item's custom property.
ThumbnailCount Retrieve the count of this file catalog item's thumbnail.
Functions:
Name Description
GetFullPath Retrieve the full path of the file catalog item object.
GetFolderPath Retrieve the folder path of the file catalog item object.
IsLeaf Retrieve a boolean value indicating the file catalog item is a catalogue file item or not.
AddCustomProperty Add a custom property to this catalog item.
SetCustomPropertyValue Set the value of the custom property specified by name or index.
GetCustomPropertyValue Retrieve the value of custom property specified by name or index.
GetCustomPropertyName Retrieve the name of the custom property specified by index.
RemoveCustomproperty Remove the custom property specified by name or index.
RemoveAllCustomProperty Remove all custom propertys from this catalog item.
AddThumbnail Add a thumbnail to this catalog item.
RemoveThumbnail Remove the thumbnail specified by name or index.
GetThumbnailName Retrieve the name of the thumbnail specified by index.
RemoveAllThumbnail Remove all thumbnail of this catalog item.
SaveAsThumbnail Save thumbnail specified by name or index to a specific file.
example:

Dim cv, ci
Set cv = MainWindow.CurView
Set ci = cv.GetSelectedItem()

Dim Msg
Msg = "CatalogItem.Name is " & ci.Name & vbCrLf
Msg = Msg + "CatalogItem.Remark is " & ci.Remark & vbCrLf
Msg = Msg + "CatalogItem.Caption is " & ci.Caption & vbCrLf
Msg = Msg + "CatalogItem.CatalogType is " & ci.CatalogType & vbCrLf
Msg = Msg + "CatalogItem.GetFullPath() is " & ci.GetFullPath() & vbCrLf
Msg = Msg + "CatalogItem.GetFolderPath() is " & ci.GetFolderPath() & vbCrLf
Msg = Msg + "CatalogItem.IsLeaf() is " & ci.IsLeaf() & vbCrLf
Msg = Msg + "CatalogFileItem.ExtensionName is " & ci.ExtensionName & vbCrLf
Msg = Msg + "CatalogFileItem.Size is " & ci.Size & vbCrLf
Msg = Msg + "CatalogFileItem.LastWriteTime is " & ci.LastWriteTime & vbCrLf
Msg = Msg + "CatalogFileItem.CreationTime is " & ci.CreationTime & vbCrLf
Msg = Msg + "CatalogFileItem.LastAccessTime is " & ci.LastAccessTime

MsgBox Msg

   
See Also:

File Catalog Group Object

©2008 Greendgh Software. All rights reserved. Privacy statement