Skip to main content
Known Participant
April 19, 2011
Answered

Is it possible to copy text to the clipboard in Illustrator via Javascript ?

  • April 19, 2011
  • 1 reply
  • 8127 views

I am working on a very basic script that exports coordinates from Illustrator.

At the moment I am just outputing the values via $.writeln()

I was wondering if I could copy the output values to the clipboard. If so, what

am I looking for in the API ?

Thanks,

George

This topic has been closed for replies.
Correct answer Muppet_Mark-QAl63s

I can't app.copy() here Im at work with CS2… But you may be able to create a temporary text frame set then select the contents then copy… remove…

1 reply

Muppet_Mark-QAl63s
Muppet_Mark-QAl63sCorrect answer
Inspiring
April 19, 2011

I can't app.copy() here Im at work with CS2… But you may be able to create a temporary text frame set then select the contents then copy… remove…

orgicusAuthor
Known Participant
April 19, 2011

Thanks Mark, this workaround is fine.

Wish there was a method in the API withouth the need to add a pathText.

Muppet_Mark-QAl63s
Inspiring
April 19, 2011

Just wondering… why did you need it on the clipboard? There is no direct way with the ESTK such as AppleScript's…

set the clipboard to "Some String"