Skip to main content
Participant
October 19, 2022
Question

Place - script

  • October 19, 2022
  • 3 replies
  • 293 views

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 🙂

This topic has been closed for replies.

3 replies

Loic.Aigon
Legend
October 19, 2022

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).

BarlaeDC
Community Expert
Community Expert
October 19, 2022

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

Community Expert
October 19, 2022

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