I am trying to throw a specific error code inside of a applescript snippet that I am running via osascript
.
This is my code:
osascript -e "if ((clipboard info) as string) does not contain \"«class PNGf»\" then" -e "error number 61" -e "end if"
However, I either get statuscode 1
or 0
instead of getting either 0
or 61
. Is there any way to forward the errors?