🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.photoshop.scripting
Article #141

Setting width of a new document

#141
From: richard_baguley
Date: Mon, 16 Mar 2009 00:38
6 lines
904 bytes
Evening all, I am trying to set up an AppleScript that opens a new document 100 pixels by 100 pixels. But when I try the code below, it opens a document 100 inches wide. How do I set the size to pixels?

My code:
make new document with properties {height:100, width:100}

I've tried specifying that as 100px or 100 pixels, but neither of them worked. Any ideas?
Technical Details
Message-ID: <59b837e4.-1@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newshub.sdsu.edu!webcrossing

Show Full Headers
Complete Article Headers
X-Google-Thread: f5839,7e13cb30b76fed96,start
X-Google-Attributes: gidf5839,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: richard_baguley@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.photoshop.scripting
Subject: Setting width of a new document
Message-ID: <59b837e4.-1@webcrossing.la2eafNXanI>
Date: Sun, 15 Mar 2009 17:38:26 -0700
Lines: 9
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit