appapp.project.item(index).layer(index).applyPreset(presetName);
Description
Applies the specified collection of animation settings (an animation preset) to the layer. Predefined animation preset files are installed in the Presets folder, and users can create new animation presets through the user interface.
Parameters
pres etNa me An ExtendScript File object for the file containing the animation preset.
Returns
Nothing.