Bitcoin Forum
November 14, 2024, 12:58:37 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: [closed]  (Read 779 times)
bb113 (OP)
Hero Member
*****
Offline Offline

Activity: 728
Merit: 500


View Profile
April 25, 2012, 12:45:41 AM
Last edit: April 26, 2012, 05:12:35 PM by bitcoinbitcoin113
 #1

closed
bb113 (OP)
Hero Member
*****
Offline Offline

Activity: 728
Merit: 500


View Profile
April 25, 2012, 11:08:33 PM
 #2

Bounty up to 5. I discovered photoshop doesn't like automating measurement exports.
bb113 (OP)
Hero Member
*****
Offline Offline

Activity: 728
Merit: 500


View Profile
April 26, 2012, 01:13:21 PM
 #3

Bounty down to half a btc

Code:
this.dpath = app.activeDocument.path;
this.filename = app.activeDocument;
this.filenumber = 0;
var f = new File(this.dpath+"/"+ this.filename + "measurements" + this.filenumber + ".txt" );
                  app.measurementLog.exportMeasurements (f, MeasurementRange.ALLMEASUREMENTS);

It overwrites every time. How do I make filenumber a variable determined by the number of measurement logs in the current folder?
bb113 (OP)
Hero Member
*****
Offline Offline

Activity: 728
Merit: 500


View Profile
April 26, 2012, 05:13:08 PM
 #4

Figured it out.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!