[Solved] How to deliberately "fail" an action from a script step

When I put access dropbox in a script step (like Dr Drang’s Dropbox script it can happen that the Dropbox.write method returns a failure code (0).

How can I pass this failure up to the action, so that the action finishes without success.

See the documentation on context.

https://scripting.getdrafts.com/classes/context.html

Thanks. I’m sure that will do the trick. :smile:

Yep, context.fail() works as expected. :slight_smile: