🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.photoshop.scripting
Article #200

Re: Setting width of a new document

#200
From: richard_baguley
Date: Mon, 16 Mar 2009 14:18
6 lines
1010 bytes
Actually, I figured out that I had not set the ruler units correctly, and the program was defaulting to inches. I added these two lines at the top of the script and they fixed it:

tell application "Adobe Photoshop CS4"
	-- set the units to pixels
	set ruler units of settings to pixel units
	set type units of settings to pixel units
Technical Details
Message-ID: <59b837e4.1@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!newshub.sdsu.edu!webcrossing
References: <59b837e4.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f5839,7e13cb30b76fed96
X-Google-Attributes: gidf5839,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: richard_baguley@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.photoshop.scripting
Subject: Re: Setting width of a new document
Message-ID: <59b837e4.1@webcrossing.la2eafNXanI>
Date: Mon, 16 Mar 2009 07:18:26 -0700
References: <59b837e4.-1@webcrossing.la2eafNXanI>
Lines: 8
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit