[scriptable, uuid(1448b42f-cf0d-466e-9a15-64e876ebe857)]
Constants
Attributes
The MIME type of this MIMEInfo. @return String representing the MIME type.
alwaysAskBeforeHandling: if true, we should always give the user a dialog asking how to dispose of this content.
A pretty name description of the associated default application. Only usable if hasDefaultHandler is true.
A human readable description of the MIME info. @return The description
Indicates whether a default application handler exists, i.e. whether launchWithFile with action = useSystemDefault is possible and applicationDescription will contain usable information.
preferredAction is how the user specified they would like to handle this content type: save to disk, use specified helper app, use OS default handler or handle using navigator.
Returns a nsIFile that points to the application the user has said they want associated with this content type. This is not always guaranteed to be set!!
Methods
Returns whether or not these two MIME infos are logically equivalent maintaining the one-to-many relationship between MIME types and file extensions. @returns TRUE if the two are considered equal
Returns whether or not the given extension is associated with this MIME info. @return TRUE if the association exists.
Gives you an array of file types associated with this type. @return Number of elements in the array. @return Array of extensions.
Launches the application with the specified file, in a way that depends on the value of preferredAction. preferredAction must be useHelperApp or useSystemDefault. @param aFile The file to launch this application with. @throw NS_ERROR_INVALID_ARG if action is not valid for this function. Other exceptions may be thrown.
Compare to:
