Answered
How to check if the Rullers in Photoshop are On / Off via script?
When I want to turn the rullers on or off, I need to know is it on or off right now? Because if it is off, then the code will turn it on, and vice versa.
How to check if the Rullers in Photoshop are On / Off via script?
Note: I used below url to turn it on and off. Thanks to Adobe team.