Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 97529

Re: How to delete a document if I press escKey while running a script. Please help...

$
0
0

Perhaps if you embed the interactive adjustment process in a Try Catch you can catch you used the esc key, It sounds like the esc key cause an error that cause the script to end.   If you catch the error you can delete the document in the catch process.

 

If there is no error that esc key just terminates the running script. Don't use the ecs to kill the script. Program in a process to handle keyboard key presses that you can trigger your script to delete the document and end the scrip's executiom


Viewing all articles
Browse latest Browse all 97529

Trending Articles