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 🙂
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
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
Copy link to clipboard
Copied
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).