Select folder from InDesign

It’s a simple task to tell InDesign to place a spesific file in an picturebox:
tell myFrame
place “Servername:Foldername:Filename.eps”
end tell

But how do I tell InDesign to just go to a spesific folder, and then let my choose the file I want to place?

Thanks in advance. :slight_smile:


tell myFrame
set thefile to (choose file of type {"eps", "jpg", "pdf", "tif"}) as string
place thefile
end tell

The jpg can be any file type, and filters out those you don’t want (leave blank and trust the user). This uses the standard addition, not InDesign’s commands, for a list of those commands open the dictionary for the Standard Scripting Additions. You chould also allow multiple selections with this commnad. I have coerced the result to a string I think that works, if not take out the as string and leave the result as the alias that is returned.

Thank you! :smiley: