Here is how you can toggle snapping
app.runMenuItem(stringIDToTypeID('snap'));
Not sure how you could determine the current state.
Here is how you can toggle snapping
app.runMenuItem(stringIDToTypeID('snap'));
Not sure how you could determine the current state.