Skip to main content
Legend
November 8, 2012
Answered

Place-Dialog with specific paths

  • November 8, 2012
  • 2 replies
  • 1601 views

Hello folks,

im (re)new to indesign, we finally changed from quark to indd, thank god.

now im setting up my workspace and want to be as productiv as in quark, so i need some help doing things in indd.

ive gotten a bit to do in Applescript, basic stuff, to make quark things do like i wish, now i stumble upon some stones in indd wich i cant solve or dont really now how to start.

first, am im correct here in the scripting forum? seems noone has answers in applescript, but i dont know how to translate the windowsstuff to my mac.

but lets get to my first simple task:

we have some specific never-changing fileserverpaths with pictures, logos, slogans etc.. i used a tool called "spark" that does simply press keystrokes, so i did on alt+e e.g. tab + arrow up 2 times and then i was in that path i disired.

first of all, in indd, can i assign shortcuts to applescripts?

if so (what would be great), i need a simple script to tell indd to

do the place…-dialog on a specific path (maybe after that do that what happens when i press apple+f to do a filesearch in that location)

everything else has to be as i call that dialog out of the menu, so behave like i press it while in a box or with nothing selected at all.

maybe someone can help me start right.

thanks for your help

JAN

ps. is there a german scripting community here or do i continue posting in my sloppy english?

This topic has been closed for replies.
Correct answer -hans-

Hi,

ein sehr gutes deutschsprachiges Forum findest Du unter hilfdirselbst.ch.

To preselect a Folder you can use the following script.

Just change the folderpath to your needs save it to the scriptsfolder and give it a shortcut in ID.

When finished the placegun should be loaded with the selected files ...

#target Indesign

var pathToPredefinedFolder = Folder('~/Desktop/');//Folderobject

app.place(pathToPredefinedFolder.openDlg ('Get some files', '', true)) //prompt, filter, multiselect

Hans-Gerd Claßen

2 replies

-hans-Correct answer
Inspiring
November 8, 2012

Hi,

ein sehr gutes deutschsprachiges Forum findest Du unter hilfdirselbst.ch.

To preselect a Folder you can use the following script.

Just change the folderpath to your needs save it to the scriptsfolder and give it a shortcut in ID.

When finished the placegun should be loaded with the selected files ...

#target Indesign

var pathToPredefinedFolder = Folder('~/Desktop/');//Folderobject

app.place(pathToPredefinedFolder.openDlg ('Get some files', '', true)) //prompt, filter, multiselect

Hans-Gerd Claßen

DBLjanAuthor
Legend
November 8, 2012

Hello Hans,

leider ist unsere Firma so blöd hilfdirselbst.ch nicht durchzurouten, weil unsere IT n kleinen Schuss hat. Deswegen wenn ich mal Zeit hab versuche ich mich selber über diesen Weg (vorher im Quarkforum) drum zu kümmern.

Aber dafür hast du mir schon super geholfen, das klappt nach erstem Testen einwandfrei, vielen Dank dafür!

DBLjanAuthor
Legend
November 8, 2012

Momentchen

habe leider doch noch was entdeckt… wie gehe ich das Problem an, wenn ich doch ESC drücke und nix einladen wollte?

dulajun
Inspiring
November 8, 2012
DBLjanAuthor
Legend
November 8, 2012

Sorry Abdulaziz,

i'm behind a tight firewall, our company only routed the whole adobe-site, i cant see what you pasted.

Pls post it in here, im sorry.

dulajun
Inspiring
November 8, 2012

It's a complete reference to InDesign CS4 javascript API