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

Place - script

New Here ,
Oct 19, 2022 Oct 19, 2022

Copy link to clipboard

Copied

Hi,

I would need to make a Script in Indesign that always inserts a document (pdf, ai) from specific folders into an open document.

I want to set a Keyboard Shortcut on it so that I can easily insert the logo into the document with a shortcut.

 

Thank you 🙂

TOPICS
Scripting

Views

48

Likes

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
Community Expert ,
Oct 19, 2022 Oct 19, 2022

Copy link to clipboard

Copied

With no documents open 

File>New Library

Import your PDF/AI file into the library

You can dock the Library with the rest of your panels (save your workspace if you like)

 

Then in Edit>Keyboard Shortcuts

Go to Prodcut Area:
Panel Menus

 

Navigate to:

Library: Place Item(s)

 

And then set your keyboard shortcut.

 

With one item in the library it will work.

If you have more than one item - it will place the item that is selected

 

 

Likes

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
Community Expert ,
Oct 19, 2022 Oct 19, 2022

Copy link to clipboard

Copied

Hi,

 

You should be able to make use of the Sample that is shipped with InDesign -> PlaceMultiPagePdf.js (Windows->Utilities->Scripts, to open the panel)

 

This shows how to place a PDF file, and then in the keyboard shortcuts menu item ( Edit->Keyboard shortcuts) you can select any script and assign it a shortcut.

 

Hope this helps

Likes

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
Valorous Hero ,
Oct 19, 2022 Oct 19, 2022

Copy link to clipboard

Copied

LATEST

Just associate shortcut to your script: 

//obviously need all teh preliminary checks but basically…

myContainer.place(File(filePath));

If you really need file to be placed for every single file you work with, use a startup script and an open event listener so it does it automatically (you can of course have a checking routine).

Likes

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