Reply To: Cut photo in half along curved path

Home Page / Forums / General InDesign Topics (CLOSED) / Cut photo in half along curved path / Reply To: Cut photo in half along curved path

#85851
Ari Singer
Member

Well done, Skemicle.

I noticed that you used an if/else statement instead of a try/catch. The reason I used try/catch is because a bunch of things could go wrong in the script even if the selection only contains two items (such as an object that is not a valid path and can’t get subtracted etc.) and the script would crash with a nasty error.

But with the try/catch block, I present a user-friendly alert to the user notifying of the issue, without crashing the script. And this also eliminates the need of an if/else statement.

This article was last modified on June 16, 2016

Comments (0)

Loading comments...