Bitcoin Forum
June 19, 2018, 10:58:19 AM *
News: Latest stable version of Bitcoin Core: 0.16.1  [Torrent]. (New!)
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: [closed]  (Read 649 times)
bb113
Hero Member
*****
Offline Offline

Activity: 728
Merit: 500


View Profile
April 25, 2012, 12:45:41 AM
 #1

closed
1529405899
Hero Member
*
Offline Offline

Posts: 1529405899

View Profile Personal Message (Offline)

Ignore
1529405899
Reply with quote  #2

1529405899
Report to moderator
1529405899
Hero Member
*
Offline Offline

Posts: 1529405899

View Profile Personal Message (Offline)

Ignore
1529405899
Reply with quote  #2

1529405899
Report to moderator
The World's Betting Exchange

Bet with play money. Win real Bitcoin. 5BTC Prize Fund for World Cup 2018.

Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1529405899
Hero Member
*
Offline Offline

Posts: 1529405899

View Profile Personal Message (Offline)

Ignore
1529405899
Reply with quote  #2

1529405899
Report to moderator
bb113
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
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
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:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!