John A Horner wrote: thank you both so much for your replys. it have incorporated your suggestions and the sript seems to be working fine. i have one more related question: i notice that in some of the scripts i already have there is a semi-colon at the end of most of the lines but not all. for example: activeDocument.flatten(); activeDocument.channels.removeAll() activeDocument.pathItems.removeAll(); does it make a difference one way or another? finally, i am new to the forums and saw that i was only able to give 1 correct answer or 2 helpful so i wasn't sure the correct protocol for situations where there are 2 apparantly correct solutions. but now, even though i have 2 correct solutions, it shows up as only "possibly answered". is there a way to edit this? please let me know if there is a proper way to handle this on the forums. thanks again for everything. jh |
If you are flattening the document first, then the warning about deleting vector masks for the current layer won't apply to you, you are good to removeAll.
From what I remember, adding the ';' at the end of each line is 'proper' javascript, and I believe was once required. It often doesn't matter from what I've seen (I am often lazy and forget/neglect to use it myself) as many scripts will run just fine whether it is there or not. I believe it still is required in certain circumstances, although I am not completely sure what they are.
I don't know how the Adobe system uses it's points, not sure what to tell you on that.