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

Can you embed a Javascript within a InDesign file

New Here ,
May 30, 2008 May 30, 2008
Hi,
Could anyone tell me if this is possible.

We would like to embed a Javascript within an InDesign document so that if someone was to receive the InDesign File it would contain that script.

I have looked at the documentation but have not found any mention of this, but I have been told by a Customer that it is possible.

Many thanks
TOPICS
Scripting
2.9K
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 Expert ,
May 30, 2008 May 30, 2008
You could store it in the document's label. But the person on the receiving end would then have to know how to get that script out of the label and installed as a script. [Maybe there is a script to extract a script from a label and run it?]

Peter
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 ,
May 30, 2008 May 30, 2008
why not to place script's code as contents of TextFrame on pasteboard with info where to save ? ;)

robin

--
www.adobescripts.com
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
Explorer ,
May 30, 2008 May 30, 2008
Fellow Scripters,

You can embed a script in any object that either a.) has a label property, or b.) supports the insertLabel/extractLabel methods. Running the script is as simple as extracting the label and feeding it to the app.doScript method. Somewhere around here I have an example of a menu item eventListener that adds menu items defined in an embedded script to the Layout context menu when the page item is selected....

Thanks,

Ole
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
New Here ,
May 30, 2008 May 30, 2008
Thanks for the info.

I was looking for something that I could run directly - I think that the idea of embedding the script in a label and using app.doScript will be the way forwards.

Many 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
LEGEND ,
Jun 01, 2008 Jun 01, 2008
scbutler@adobeforums.com wrote:
> I was looking for something that I could run directly - I think that the idea of embedding the script in a label and using app.doScript will be the way forwards.
>
If you need even more automation than that, you should check out the
APID ToolAssistant from Rorohiko. You can embed a script in a doc and
have it run itself completely automatically (on doc loading, and any
other of a multitude of events...)

www.rorohiko.com

I highly recommend it (and I have no interest in the company).

Harbs
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 ,
Dec 14, 2013 Dec 14, 2013
LATEST

Hello All,

It's a long-back discussion, is there any updated suggestion/method available to embed the scripts within the InDesign templates? So that user can access those script and run the same whenever it's required.

Thanks,

Praveen

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