A Script to Show Options for Placed Files

When you use File > Place you are given a dialog box with a choice to Show Import Options.

image1

Tip: Hold down Shift when opening a file and Import Options automatically opens without having to select it.

Import Options allow you to control certain aspects of the placed file, including cropping, visible layers, image proxies, color profiles, clipping paths, and for multi-page files like AI, INDD, and PDF, which page(s) to place.

For an EPS, the dialog box looks like this:

image2

For an InDesign file it looks like this and it’s pretty similar for a PDF/AI.

image3

You have General options to choose pages and cropping, and Layer options to control…well, layers.

Where it fails

After you place a file, (or if you’re like me and love to drag and drop files), you do not get access to Show Options.

For a file that has already been placed, the only way you can get the options dialog box back is by repeating the whole placing process, (i.e. choosing File > Place, navigating to the file, and placing it using Show Options, or holding down Shift).

But let’s face it, this is a real pain. There has to be a better way to do this than navigating all over your hard drive, server, or even worse, someone else’s filing system to re-place a file using different options. And in fact, there is…

A script to the rescue

I stumbled on a cool script, written by John Hawkinson at the Adobe InDesign Forums in this thread. The script is just two lines long, but it does the trick. According to John, the script “assumes a frame (rectangle) is currently selected, and re-places the file associated with it, while showing the options dialog box.”

And sure enough it works beautifully.

Select your placed file in the layout.

20150827-showoptions1

Run the script.

20150827-showoptions2

You are then presented with the dialog box again. So you can select a different page, different layers, etc.

20150827-showoptions3

20150827-showoptions4

Just note that if you cancel without re-placing the file you’ll get a harmless “error” that you can just dismiss.

20150827-showoptions5

You can download the script here. And if you need help installing scripts, check out this post.

If you only need the ability to reset options for placed PDF and AI files, check out the free PDFOptions Editor script by Jean-Renaud Boulay.

Thanks John (and Jean-Renaud), for giving us a much faster and better way to get that Show Options dialog box back!

Bookmark
Please login to bookmark Close

This article was last modified on December 28, 2023

Comments (30)

Leave a Reply

Your email address will not be published. Required fields are marked *

  1. josh@attainmentcompany.com
    November 15, 2024

    Did this script break for anyone else with the most recent InDesign update? I LOVE this script – it’s a massive time saver and am freaking now that it’s stopped working for me!

    1. Minty Freshh
      April 11, 2025

      It’s been broken for me for a few months now. Faced with having to place over 50 pages of PDF, and I couldn’t find updates to the scripts anywhere, the dread set it.

      AI came to the rescue, with this explanation:

      “In InDesign v19.0 and earlier, file paths were returned in HFS format (colon-delimited, like “Macintosh HD:folder:image.jpg”). However, starting with v19.01, Adobe changed this to POSIX path style (slash-delimited, like “/Volumes/Macintosh HD/folder/image.jpg”). This change was made without much announcement, causing many scripts to break.”

      And even better, it fixed the script:

      var g;
      try {
      g = app.selection[0].graphics[0];
      var filePath = g.itemLink.filePath;

      // Create a File object from the path (handles both formats)
      var fileObj = new File(filePath);

      // Place the file using the File object
      g.place(fileObj, true);
      } catch (e) {
      alert(“Error: ” + e.message + ” (Line: ” + e.line + “)”);
      }

      JOY! Yeah, thanks Adobe.
      If you copy paste this, make sure that the quote marks paste as straight quotes, not curly quotes.

    2. Mike Rankin
      November 17, 2024

      I just tried it in InDesign 2025 with a placed INDD and it works the same as always.

  2. Lukáš Záleský
    June 30, 2024

    Here’s the drag-and-drop variant, instructions included, Windows only.
    http://gofile.me/4PXGD/WJ9GlLXTh

  3. David Justice
    June 30, 2022

    This is so awesome, just one more reason I value Creative Pro and this community. Thank you for sharing this.

    1. Eugene Tyson
      July 1, 2022

      Glad you found it helpful, David. I still use the script to this day. One of the most used scripts in my arsenal!

  4. Elwin Ransom
    August 17, 2021
    1. Mike Rankin
      August 19, 2021

      Thanks, Elwin. I see that the script was tested in InDesign 16.3.2 on the Mac but I can’t get it to run (or rather when I run it nothing happens). Could it be that it doesn’t work with the M1 processor?

      1. Elwin Ransom
        August 19, 2021

        I can’t say for sure if this has an effect. It’s just a script, and a simple script. My Mac is Intel based. And no one among my friends has bought a new Mac on the M1 yet. So, unfortunately, I can’t test the script on the M1. You can try to uncomment line 81, just remove the two slashes at the beginning of it (//msgbox(err); —> msgbox(err);). This will display an error message when running the script. I’d be interested to see what the script says, but I’m afraid I may not be able to help fix this problem. Sorry Mike, I apologize for the inconvenience.

  5. AARON F
    February 15, 2019

    is there a way to remove “layer visibility overrides” from all instances of a linked Illustrator file in InDesign? Example: I have 25 instances of an illustrator file and I want to change all of the instances to “use PDF layer visibility” without changing each manually

  6. Mac_Abra
    January 4, 2019

    Thank You VERY MUCH.

  7. JuSt
    October 16, 2018

    @Does not work anymore for me (since Indesign 13.1)

    My bad – still works. The problem was that I worked remotely on a mac mini and “g.itemLink.filePath” always seemed to prefix it with my harddisk – even when located somewhere else.

    the ugly code below fixed my issue:

    try { var g; (g=app.selection[0].graphics[0]).place(g.itemLink.filePath, true); }
    catch(err) { var g; (g=app.selection[0].graphics[0]).place(g.itemLink.filePath.replace(“Macintosh HD:Users:”,””), true); }

  8. JuSt
    October 15, 2018

    Does not work anymore for me (since Indesign 13.1)

  9. Mat
    June 18, 2018

    Erica – Nope still nothing for me. Must be me doing something wrong!

    1. William Gotz
      August 31, 2018

      Mac is adding .txt to the file for me when I right click and “download linked file as…”. I had to remove .txt then it worked.

    2. June 18, 2018

      Hmmmm…strange. So if you right-click on the link and say “download linked file as…” it doesn’t appear as a .jsx file? Or does the download work but not the script itself? I could email it to you if it’s just that the download isn’t working for you.

  10. Sonja
    February 18, 2018

    I have tried to find this script but it no longer seems available. Does anyone know where I can find it now?

    1. Erica Gamet
      May 13, 2018

      The link in the story above works just fine for me…are you still having trouble with it?

      1. June 16, 2018

        Mat-Did you get it to work? It’s working fine for me.

      2. Mat Watkins
        May 29, 2018

        Hi, I cant get it to work, does anyone have the script file they could send me or point me to a download as its not working for some reason when i create the script from the above link. Thanks loads.

  11. Olivia
    September 9, 2016

    Just found this through a Google search… SO helpful. Thank you!

  12. Eugene Tyson
    October 7, 2015

    No idea! Try posting over on the forums though – if there’s an answer I’ll try to add it here! Thanks for bringing it up!

    1. sueg
      October 13, 2015

      I was being stoopid. The graphics that I was attempting to change with the script were grouped with their dynamic captions. I had not selected JUST the graphic.

      I either need more sleep, or more coffee.

  13. sueg
    October 7, 2015

    The RePlace script was working beautifully for me for the last few weeks. Suddenly, yesterday, it yields an error. I would appreciate any clues to fix. I’m not a scripter. Yet.

    Error Number:55
    Error String: Object does not support the property or method ‘graphics’

    Engine: main
    Line:2
    Source: place(g.itemLink.filePath, true);

  14. Eugene Tyson
    September 30, 2015

    Thanks for posting that, Colin! Very helpful!

    There’s plenty of people who write similar scripts, shows a necessity for that function if it’s requested and written over and over again!!!

  15. August 29, 2015

    Have to say that if there’s one thing I took away from PEPCON 2015, it was the shift-trick… haven’t stopped using that yet!

    I remember “back in the day” there was a script by LuxLucid that would do this called “showpdfoptions.jsx, but then at CS5 (from memory) it stopped working. It did exactly the same thing as the script highlighted by Eugene, but had error correction (e.g. the script wouldn’t run if nothing was selected, and could be quit without the javascript error dialog).

    An individual named Vladislav Ossipov did rework the script though and it can be found here:
    https://ossipov.info/wp/wp-content/uploads/2008/03/showpdfoptionscs2.jsx
    Tested in CC 2015 on a Mac 10.9.5

  16. August 28, 2015

    Haven’t tried it but it looks very helpful! Especially with PDFs, say of an ad, for instance, where you might want to include bleeds or crops or just the trim, after you have placed it.

    Thanks for sharing!

  17. August 28, 2015

    Eugene! Thanks for posting this. Excellent!

  18. Eugene Tyson
    August 28, 2015

    I’d like to say that this is something that has frustrated me for years, and I think Adobe should have included this option a long time ago. It’s a cool script and a massive time saver for me.

    Thanks to John Hawkinson for writing/posting it and I’m glad I found it.

    1. August 28, 2015

      I’m sure lots of other folks will be glad too. :)