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

How Can I Copy String in a variable to clipboard in extendScript for Premiere?

Community Beginner ,
Oct 07, 2021 Oct 07, 2021

How Can I Copy String in a variable to clipboard in extendScript for Premiere?

I tried to use hint from https://community.adobe.com/t5/after-effects-discussions/how-can-i-copy-string-in-a-variable-to-clip... but for Premiere it doesn't work.

There is a System module for After Effect, but not for Premiere (((.

TOPICS
Error or problem , How to , SDK
1.0K
Translate
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

Adobe Employee , Oct 07, 2021 Oct 07, 2021

> How Can I Copy String in a variable to clipboard in extendScript for Premiere?

 

You can't, directly from ExtendScript. However, a CEP panel's ExtendScript could send that string to its JavaScript layer, then do so.

 

https://www.w3.org/TR/clipboard-apis/#async-clipboard-api

Translate
Adobe Employee ,
Oct 07, 2021 Oct 07, 2021

> How Can I Copy String in a variable to clipboard in extendScript for Premiere?

 

You can't, directly from ExtendScript. However, a CEP panel's ExtendScript could send that string to its JavaScript layer, then do so.

 

https://www.w3.org/TR/clipboard-apis/#async-clipboard-api

Translate
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
Community Beginner ,
Oct 07, 2021 Oct 07, 2021

Thanks a lot. But there is two questions in addition )). Sending a string to the clipboard via

navigator.clipboard.writeText

is working, if I open index.html in Chrome. But if I open it in Premiere - it doesn't work.

And the next question - can I send information back to my panel from my jsx file ?

(realy what I need - generate string with information in my jsx code and send it to clipboard.)

ps: sorry for stupid questions )).

Translate
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
Adobe Employee ,
Oct 07, 2021 Oct 07, 2021

Sorry, I have no knowledge of navigator.clipboard.writeText.

> And the next question - can I send information back to my panel from my jsx file ?

 

Yes! PProPanel does that in a couple of cases: here's the ExtendScript side, and the related JavaScript side

Translate
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
Community Beginner ,
Oct 07, 2021 Oct 07, 2021
LATEST

This is what I've been looking for ! Thanks.

Translate
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