• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Place-Dialog with specific paths

Advocate ,
Nov 08, 2012 Nov 08, 2012

Copy link to clipboard

Copied

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?

TOPICS
Scripting

Views

1.4K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Enthusiast , Nov 08, 2012 Nov 08, 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

Votes

Translate

Translate
Contributor ,
Nov 08, 2012 Nov 08, 2012

Copy link to clipboard

Copied

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Nov 08, 2012 Nov 08, 2012

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Nov 08, 2012 Nov 08, 2012

Copy link to clipboard

Copied

It's a complete reference to InDesign CS4 javascript API

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Nov 08, 2012 Nov 08, 2012

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Nov 08, 2012 Nov 08, 2012

Copy link to clipboard

Copied

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!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Nov 08, 2012 Nov 08, 2012

Copy link to clipboard

Copied

Momentchen

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

Bildschirmfoto 2012-11-08 um 12.52.45.png

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Nov 08, 2012 Nov 08, 2012

Copy link to clipboard

Copied

LATEST

In this case a simple try/catch should be enough

#target Indesign

try{

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

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

}catch (e){}

Hans-Gerd

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Nov 08, 2012 Nov 08, 2012

Copy link to clipboard

Copied

How to specify a filter for *.psd as an example (in Mac)

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines