I want to share a small trick I have learned from this presentation.
It is an undocumented feature of Automation Scripts that will automatically launch a script based on a special naming convention.
For example if you want to run a script each time a ASSET object is saved you just have to create an automation script (without a Launch Point) and call it ASSET.SAVE.
There are just three events that can be used:
As an example lets define the a script that sets a default description when an asset is duplicated.
Open the Automation Scripts application and select Create > Script from the action menu. Create the following script.
- Script: ASSET.DUPLICATE
- Description: Override description when duplication an asset
- Language: python
- Source Code:
dupmbo.setValue("DESCRIPTION", "New asset!!!")