comet.batch¶
The comet.batch module provides access to document batch processing functionality
Methods¶
- comet.batch.start() None ¶
Start the batch process.
- Return type:
None
- Raises:
CometError – When batch is already running
- Available:
Illustrator®
- CScript:
- comet.batch.stop() None ¶
Stop the batch process.
- Return type:
None
- Raises:
CometError – When batch is not running
- Available:
Illustrator®
- CScript:
- comet.batch.isRunning() None ¶
Return whether the batch process is running
- Returns:
Whether the batch process is running
- Return type:
- Available:
Illustrator®
- CScript:
- comet.batch.setStart(hours: int, minutes: int) None ¶
Set the start time for any subsequent calls to start()
- Parameters:
- Return type:
None
- Raises:
TypeError – When parameter types are invalid
ValueError – When parameters hours or minutes have invalid values
- Available:
Illustrator®
- CScript:
- comet.batch.getStart() tuple[int, int] ¶
Fetch the next set starttime for the batch process
- Returns:
Tuple of [hours, minutes].
Values are (-1, -1) if no start time is set
- Return type:
- Available:
Illustrator®
- CScript:
- comet.batch.setInverval(interval: int) None ¶
Set the interval between two batch actions
- Parameters:
interval (int) –
The interval from the following values:
0: 1 Second
1: 2 Seconds
2: 5 Seconds
3: 10 Seconds
4: 30 Seconds
5: 1 Minute
6: 2 Minutes
7: 5 Minutes
8: 15 Minutes
9: 30 Minutes
10: 1 Hour
11: 2 Hours
12: 4 Hours
13: 6 Hours
14: 12 Hours
15: 24 Hours
- Return type:
None
- Raises:
TypeError – When parameter types are invalid
ValueError – When parameter interval has invalid value
- Available:
Illustrator®
- CScript:
- comet.batch.setInHotFolder(path: str) None ¶
Set the input hot folder for the batch mode
- Parameters:
path (str) – Full folder path to the input folder
- Return type:
None
- Raises:
TypeError – When parameter types are invalid
ValueError – When parameter path is empty
CometError – On internal error
- Available:
Illustrator®
- CScript:
- comet.batch.getInHotFolder() str ¶
Fetch the input hot folder
- Returns:
The full path to the input folder, or empty string if not set
- Return type:
- Available:
Illustrator®
- CScript:
- comet.batch.setOutHotFolder(path: str) None ¶
Set the output hot folder for the batch mode
- Parameters:
path (str) – Full folder path to the output folder
- Return type:
None
- Raises:
TypeError – When parameter types are invalid
ValueError – When parameter path is empty
CometError – On internal error
- Available:
Illustrator®
- CScript: