Article View: adobe.photoshop.scripting
Article #463Re: Create strip from image sequence
From: Paul_R
Date: Wed, 04 Feb 2009 15:13
Date: Wed, 04 Feb 2009 15:13
49 lines
1571 bytes
1571 bytes
This should stack them on top of each other...
selectedFolder = Folder.selectDialog( "Please select input folder");
var fileList = selectedFolder.getFiles();
var strtRulerUnits = app.preferences.rulerUnits;
var strtTypeUnits = app.preferences.typeUnits;
app.preferences.rulerUnits = Units.PIXELS;
app.preferences.typeUnits = TypeUnits.PIXELS;
for(var a = 0; a<fileList.length;a++){
var file = fileList[a];
if(file instanceof File && file.name.match(/\.(jpg|tif|gif|png)$/i)){
open(file);
if(documents.length > 1){
activeDocument.selection.selectAll();
activeDocument.selection.copy();
activeDocument.close(SaveOptions.DONOTSAVECHANGES);
activeDocument = documents[0];
activeDocument.paste();
}
}else{
continue;
}
app.preferences.rulerUnits = strtRulerUnits;
app.preferences.typeUnits = strtTypeUnits;
}
Technical Details
Message-ID:
<59b6a40f.6@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.glorb.com!news2.glorb.com!newsfeed.news2me.com!newshub.sdsu.edu!webcrossingReferences:
<59b6a40f.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f5839,62960464640e583b X-Google-Attributes: gidf5839,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: Paul_R@adobeforums.com Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.glorb.com!news2.glorb.com!newsfeed.news2me.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.photoshop.scripting Subject: Re: Create strip from image sequence Message-ID: <59b6a40f.6@webcrossing.la2eafNXanI> Date: Wed, 4 Feb 2009 07:13:25 -0800 References: <59b6a40f.-1@webcrossing.la2eafNXanI> Lines: 26 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit