🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.photoshop.scripting
Article #246

Re: Filenames are numerical code- need last four #'s to be the first four #'s

#246
From: xbytor
Date: Tue, 24 Mar 2009 21:52
5 lines
853 bytes
Here's a different way to get the new file name from the old file name:

newName = oldFile.name.replace(/(\d+_\d+)(_)(\d+)\.jpg/, "$3$2$1.jpg");

-X
Technical Details
Message-ID: <56F00EABABA015FD4DA20B5A76357E3E@in.webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!newshub.sdsu.edu!webcrossing
References: <59b863d7.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f5839,e42e368af880f5c9
X-Google-Attributes: gidf5839,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: xbytor@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.photoshop.scripting
Subject: Re: Filenames are numerical code- need last
 four #'s to be the first four #'s
Message-ID: <56F00EABABA015FD4DA20B5A76357E3E@in.webcrossing.la2eafNXanI>
Date: Tue, 24 Mar 2009 14:52:01 -0700
References: <59b863d7.-1@webcrossing.la2eafNXanI>
Lines: 5
User-Agent: Thunderbird 2.0.0.21 (Macintosh/20090302)
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit