Modifier and Type | Method | Description |
---|---|---|
String |
getBundleIdentifier() |
The item’s bundle identifier (if the item is a package).
|
Date |
getCreationDate() |
The date the item was created.
|
Alias |
getDefaultApplication() |
The application that normally opens this kind of item.
|
String |
getDisplayedName() |
The user-visible name of the item.
|
String |
getFileCreator() |
The creator type of the item.
|
String |
getFileType() |
The file type of the item.
|
Rectangle |
getFolderWindow() |
The coordinates of the folder’s window (if the item is a folder).
|
String |
getKind() |
The kind of the item.
|
String |
getLongVersion() |
The item’s long version string (from the Finder’s ‘Get Info’ box).
|
Date |
getModificationDate() |
The date the item was last modified.
|
String |
getName() |
The name of the item.
|
String |
getNameExtension() |
The name extension of the item (such as “txt”).
|
Map<String,Object> |
getProperties() |
Returns all properties for an instance of this class.
|
String |
getShortName() |
The short name (CFBundleName) of the item (if the item is an application).
|
String |
getShortVersion() |
The item’s short version string (from the Finder’s ‘Get Info’ box).
|
int |
getSize() |
The size of the item in bytes.
|
String |
getTypeIdentifier() |
The item’s type identifier.
|
boolean |
isAlias() |
Is the item an alias file?
|
boolean |
isBusyStatus() |
Is the item currently in use?
|
boolean |
isExtensionHidden() |
Is the item’s name extension hidden from the user?
|
boolean |
isFolder() |
Is the item a folder?
|
boolean |
isLocked() |
Is the item locked?
|
boolean |
isPackageFolder() |
Is the item a package (a folder treated as a file?).
|
boolean |
isVisible() |
Is the item visible?
|
cast, getApplicationReference, getObjectReference, getTypeClass, isInstanceOf
static final TypeClass CLASS
@Code("pnam") @Kind("property") @Name("name") @Type("text") String getName()
@Code("dnam") @Kind("property") @Name("displayed name") @Type("text") String getDisplayedName()
@Code("cfbn") @Kind("property") @Name("short name") @Type("text") String getShortName()
@Code("nmxt") @Kind("property") @Name("name extension") @Type("text") String getNameExtension()
@Code("bnid") @Kind("property") @Name("bundle identifier") @Type("text") String getBundleIdentifier()
@Code("utid") @Kind("property") @Name("type identifier") @Type("text") String getTypeIdentifier()
@Code("kind") @Kind("property") @Name("kind") @Type("text") String getKind()
@Code("asda") @Kind("property") @Name("default application") @Type("alias") Alias getDefaultApplication()
@Code("ascd") @Kind("property") @Name("creation date") @Type("date") Date getCreationDate()
@Code("asmo") @Kind("property") @Name("modification date") @Type("date") Date getModificationDate()
@Code("asty") @Kind("property") @Name("file type") @Type("text") String getFileType()
@Code("asct") @Kind("property") @Name("file creator") @Type("text") String getFileCreator()
@Code("assv") @Kind("property") @Name("short version") @Type("text") String getShortVersion()
@Code("aslv") @Kind("property") @Name("long version") @Type("text") String getLongVersion()
@Code("ptsz") @Kind("property") @Name("size") @Type("integer") int getSize()
@Code("alis") @Kind("property") @Name("alias") @Type("boolean") boolean isAlias()
@Code("asdr") @Kind("property") @Name("folder") @Type("boolean") boolean isFolder()
@Code("ispk") @Kind("property") @Name("package folder") @Type("boolean") boolean isPackageFolder()
@Code("hidx") @Kind("property") @Name("extension hidden") @Type("boolean") boolean isExtensionHidden()
@Code("pvis") @Kind("property") @Name("visible") @Type("boolean") boolean isVisible()
@Code("aslk") @Kind("property") @Name("locked") @Type("boolean") boolean isLocked()
@Code("bzst") @Kind("property") @Name("busy status") @Type("boolean") boolean isBusyStatus()
@Code("asfw") @Kind("property") @Name("folder window") @Type("bounding rectangle") Rectangle getFolderWindow()