var docDim = app.activeDocument.width + "x" + app.activeDocument.height; ... fileNameBody += "_" + layerName + docDim;This is outputting 800 px x 800 px How would I drop px from the string?
Photoshop JSX Script Help
Started by
android
, Nov 03 2010 09:14 AM
2 replies to this topic
#1
Posted 03 November 2010 - 09:14 AM
#2
Posted 03 November 2010 - 10:07 AM
Assuming that is essentially JavaScript you're working with, try:
app.activeDocument.width.replace('px', '');
Edited by rc69, 03 November 2010 - 10:07 AM.
#3
Posted 03 November 2010 - 02:43 PM
Mucho thank you
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users