I was referring to the case that my validation plugin should work on the saved file (offset is calculated more precisely because command "save" places the code a bit differently).
That's why I wanted to add a check before running the plugin.
Code:
If not saved:
Show message "Save the file first"
else:
Run