• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Read clipboard text

Participant ,
Jul 20, 2011 Jul 20, 2011

Copy link to clipboard

Copied

Hi scripters

Is there any commands for collect or read clipboard content in Indesign cs3 javascript.

Thanks in advance

regards

arul

TOPICS
Scripting

Views

1.2K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Jul 20, 2011 Jul 20, 2011

No, there is not. You'll have to call VB or AppleScript to do so, depending on your platform.

Votes

Translate

Translate
LEGEND ,
Jul 20, 2011 Jul 20, 2011

Copy link to clipboard

Copied

No, there is not. You'll have to call VB or AppleScript to do so, depending on your platform.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Jul 20, 2011 Jul 20, 2011

Copy link to clipboard

Copied

LATEST

hi

I had solved similar problems with this code in the past, but this isn't so good.

var doc = app.documents[0];
var lay = doc.layers.add();
var tf = doc.textFrames.add(lay);
tf.insertionPoints[-1].select();
app.paste();

var clipboard = tf.parentStory.contents;

tf.remove();
lay.remove();
alert(clipboard);

thank you

mg.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines