QX.js API Reference

qxml

qxml

The qxml module represents the QXML XTension of QuarkXPress application in java scripting world. You can use its properties and methods for QXML related operations.

Methods

(static) getAssetNameFromClassName(className, assetType) → {string}

Gets the asset name corresponding to a given class name and asset type.
Parameters:
Name Type Description
className string Name of class corresponding to which asset name is to be returned.
assetType app.constants.assetTypes See assetTypes for all avaiable asset types.
Returns:
Asset name.
Type
string

(static) getClassNameFromAssetName(assetName, assetType) → {string}

Gets the class name corresponding to a given asset name and asset type.
Parameters:
Name Type Description
assetName string Name of asset corresponding to which class name is to be returned.
assetType app.constants.assetTypes See assetTypes for all avaiable asset types.
Returns:
Class name.
Type
string

(static) getClassNameFromSelectorName(selectorName) → {string}

Gets the class name corresponding to a given selector name.
Parameters:
Name Type Description
selectorName string Name of selector corresponding to which class name is to be returned.
Returns:
Class name.
Type
string