Reply To: Global Table to Text

#53353

Sorry I forgot to add I'm on CS4.

Oof! What a relief. The simple 6-line script I wrote works perfectly, in that it converts all tables that start in your currently selected text frame to text (a table that's partially in a previous frame will not, one that starts in the current and runs into the next frame will). But– as I was just checking out CS5 for possible bugs, and the table system did not change, I thought “well, let's just do it”.

It does not work in CS5! Fortunately you thought of mentioning your version, but I'm gonna throw this spanner into the wheel of Adobe's scripting forum, just in case.

Copy the script, paste into Adobe's ESTK Editor and then save as “tablestotext.jsx” in the Scripts folder.

//DESCRIPTION:Convert Tables in Text Frame to text
// A Jongware production
// Jongware, 7-Jul-2010

if (app.selection.length == 1 && app.selection[0] instanceof TextFrame && app.selection[0].tables)
{
last = app.selection[0].tables.length;
while (last > 0)
{
last -= 1;
app.selection[0].tables[last].convertToText();
}
}

This article was last modified on July 6, 2010

Comments (0)

Loading comments...