What's new
Photoshop Gurus Forum

Welcome to Photoshop Gurus forum. Register a free account today to become a member! It's completely free. Once signed in, you'll enjoy an ad-free experience and be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Reply to thread

I'm trying to write a simple script using ChatGPT to reset ruler settings

Nothing works :(

Why this script doesn't work in Photoshop CS6 (old version) ?

Regards, Arek

--------------------------------------------------------

// Reset Rulers to Starting Position (0, 0)


// Set ruler units to pixels

app.preferences.rulerUnits = Units.PIXELS;


// Set the active document

var doc = app.activeDocument;


// Set the origin point of the ruler to (0,0)

doc.rulerOrigin = [0, 0];


What is our favorite program/app? (Hint - it begins and ends with the letter P)
Back
Top