AliasFile
, ApplicationFile
, Clipping
, DocumentFile
, InternetLocationFile
@Plural("files") @Code("file") @Name("file") @Inherits("item") public interface File extends Reference, Item
Modifier and Type | Method | Description |
---|---|---|
TypeClass |
getCreatorType() |
The OSType identifying the application that created the item.
|
TypeClass |
getFileType() |
The OSType identifying the type of data contained in the item.
|
String |
getProductVersion() |
The version of the product (visible at the top of the “Get Info” window).
|
Map<String,Object> |
getProperties() |
Returns all properties for an instance of this class.
|
String |
getVersion() |
The version of the file (visible at the bottom of the “Get Info” window).
|
boolean |
isStationery() |
Is the file a stationery pad?
|
void |
setCreatorType(TypeClass creatorType) |
The OSType identifying the application that created the item.
|
void |
setFileType(TypeClass fileType) |
The OSType identifying the type of data contained in the item.
|
void |
setStationery(boolean stationery) |
Is the file a stationery pad?
|
getBounds, getComment, getContainer, getCreationDate, getDescription, getDesktopPosition, getDisk, getDisplayedName, getEveryonesPrivileges, getGroup, getGroupPrivileges, getIcon, getIndex, getInformationWindow, getKind, getKlass, getLabelIndex, getModificationDate, getName, getNameExtension, getOwner, getOwnerPrivileges, getPhysicalSize, getPosition, getSize, getUrl, isExtensionHidden, isLocked, setBounds, setComment, setDesktopPosition, setEveryonesPrivileges, setExtensionHidden, setGroup, setGroupPrivileges, setIcon, setLabelIndex, setLocked, setModificationDate, setName, setNameExtension, setOwner, setOwnerPrivileges, setPosition
cast, getApplicationReference, getObjectReference, getTypeClass, isInstanceOf
static final TypeClass CLASS
@Code("asty") @Kind("property") @Name("file type") @Type("type") TypeClass getFileType()
@Code("asty") @Kind("property") @Name("file type") @Type("type") void setFileType(TypeClass fileType)
fileType
- new property value@Code("fcrt") @Kind("property") @Name("creator type") @Type("type") TypeClass getCreatorType()
@Code("fcrt") @Kind("property") @Name("creator type") @Type("type") void setCreatorType(TypeClass creatorType)
creatorType
- new property value@Code("pspd") @Kind("property") @Name("stationery") @Type("boolean") boolean isStationery()
@Code("pspd") @Kind("property") @Name("stationery") @Type("boolean") void setStationery(boolean stationery)
stationery
- new property value@Code("ver2") @Kind("property") @Name("product version") @Type("text") String getProductVersion()
@Code("vers") @Kind("property") @Name("version") @Type("text") String getVersion()
Map<String,Object> getProperties()
getProperties
in interface Item