Bitcoin Forum
April 25, 2024, 05:44:48 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: [closed]  (Read 756 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
1714067088
Hero Member
*
Offline Offline

Posts: 1714067088

View Profile Personal Message (Offline)

Ignore
1714067088
Reply with quote  #2

1714067088
Report to moderator
"This isn't the kind of software where we can leave so many unresolved bugs that we need a tracker for them." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714067088
Hero Member
*
Offline Offline

Posts: 1714067088

View Profile Personal Message (Offline)

Ignore
1714067088
Reply with quote  #2

1714067088
Report to moderator
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!