Skip to main content
Inspiring
May 8, 2019
Question

Copy as plain text

  • May 8, 2019
  • 7 replies
  • 1943 views

Hi experts,

Is that possible to make script for InDeisgn copy as plain text.

thanks

John

This topic has been closed for replies.

7 replies

JohnwhiteAuthor
Inspiring
May 9, 2019

Hi Man,

is that possible to use vb script in setClipboard format.

something like this:

Clipboard.generalClipboard.setData(ClipboardFormats.TEXT_FORMAT, features);

thanks

regard

John

JohnwhiteAuthor
Inspiring
May 9, 2019

Thank you Hopkins

thank you so much.

but all I have just the PC.

I can't try the applescript.

John

JohnwhiteAuthor
Inspiring
May 9, 2019

Thank you Robert,

John

JohnwhiteAuthor
Inspiring
May 8, 2019

Hi Man,

Could you please show me how to make this script?

John

JohnwhiteAuthor
Inspiring
May 8, 2019

Hi Man,

I just want to move the column text from one to other, but not always the next.

but each column has different format, design, color, type face, font size. ext.

so, I just want to change the contents, but not others.

thanks

regard

John

JohnwhiteAuthor
Inspiring
May 8, 2019

Thank you Man,

thank you for your help.

but what I want just something like copy from indesign then paste to notes pad, then copy back.

is that possible?

thanks

regard

John

Community Expert
May 8, 2019

Should be possible, once the data is copied you could call up and paste text into notepad using AppleScript/VBScript. But i am not clear as what purpose does this solve, if you have to bring the content back into InDesign, why paste it in Notepad in between?

-Manan

-Manan
Community Expert
May 8, 2019

Hi John,

What specifically do you mean by copy as plain text. The contents property of a story is a string that you can use as needed. Please provide more details if i misunderstood your problem

-Manan

-Manan
JohnwhiteAuthor
Inspiring
May 8, 2019

Hi Man,

for example:

If I copy some text from InDesign files, and I want to paste to some where without formatting, I have to press ctrl + shift + v,

for I need a script for copy without formatting, something like copy from notes pad.

thanks

John

Community Expert
May 8, 2019

How about creating your new textframe in which you want to paste or use a preexisting object within which you want to paste the content. And then just inserting the stories content to it. For ex run the following code with a textframe whose content you need to copy. It will create a new textframe overlapping the original with content but no formatting

var sourceTf = app.selection[0]

var destination = app.activeDocument.textFrames.add()

destination.geometricBounds = sourceTf.geometricBounds

destination.contents = sourceTf.parentStory.contents

-Manan

-Manan