Copy link to clipboard
Copied
Hi,
converted a Quark document with lots of anchored textboxes/image boxes - they all have a text wrap of 0p1. Couldn't find a script that removes all wraps globally in a document. Can anybody help?
Thanks!
Trevor, I'd suggest to set the wrap mode to None. Your script still leaves a wrap applied.
var pi = app.documents[0].allPageItems;
var l = pi.length;
while (l--) pi
.textWrapPreferences.textWrapMode = TextWrapModes.NONE;
Copy link to clipboard
Copied
Hi Tom
This should do it
var pi = app.documents[0].allPageItems;
var l = pi.length;
while (l--) pi
.textWrapPreferences.textWrapOffset = [0,0,0,0]
Trevor
Copy link to clipboard
Copied
Trevor, I'd suggest to set the wrap mode to None. Your script still leaves a wrap applied.
var pi = app.documents[0].allPageItems;
var l = pi.length;
while (l--) pi
.textWrapPreferences.textWrapMode = TextWrapModes.NONE;
Copy link to clipboard
Copied
Yes, Jongware your quite right, I had thought of that but it was very late and for some compleatly wrong reason I didn't write it.
Also with TextWrapModes.NONE the values are retained and can be reapplied if desired.
Tom, you should mark Jongware's answer as correct and you can give me a helpful ![]()
Copy link to clipboard
Copied
Thanks for your suggestions - I'm a complete newbie in regards to scripting.
So would I copy the script into a text editor and then save it as what? (what extension).
And then put it in the apple or java script folder?
Thanks!
Copy link to clipboard
Copied
Copy link to clipboard
Copied
First copy the script onto any plain text editor or the ESTK and save it with a .jsx extension
Then follow the instruction on Kasyans Link
Copy link to clipboard
Copied
Henryk Jursz has a script on his website called qxdcleaner1.4.jsx - that cleans a whole load of stuff from an old quark conversion. His site is in Polish (Dzien Dobry, jak sie masz?) but google translate the page if need be.
Colly
Find more inspiration, events, and resources on the new Adobe Community
Explore Now