Linked .ai file, change artboard

New Here ,
Mar 12, 2019 Mar 12, 2019

Copy link to clipboard

Copied

Does anyone know a different or faster way of changing an .ai linked files selected artboard, without having to select the link, relink, select file etc.

Is there a script that would allow me to change the linked artboard from within the links window? Thanks.

Views

1.3K

Likes

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

Adobe Community Professional , Mar 12, 2019 Mar 12, 2019
Hi David, there is a script snippet by John Hawkinson that works on the selected container frame of the placed graphic, will place the same graphic again showing the Import Options where you can choose a different artboard with AI files or a different page with placed PDF files ( basically that's the same ). EDIT! The link to the thread is broken, because the linked thread was not moved from the old InDesign forum to the new one by the end of last year! See ExtendScript ( JavaScript ) code h...

Likes

Translate

Translate
Adobe Community Professional ,
Mar 12, 2019 Mar 12, 2019

Copy link to clipboard

Copied

Hi David,

there is a script snippet by John Hawkinson that works on the selected container frame of the placed graphic, will place the same graphic again showing the Import Options where you can choose a different artboard with AI files or a different page with placed PDF files ( basically that's the same ).

 

EDIT! The link to the thread is broken, because the linked thread was not moved from the old InDesign forum to the new one by the end of last year!

 

See ExtendScript ( JavaScript ) code here:

Re: Toggle pages of a linked Indesign document inside Indesign?

 

Here is my original code from 2016:

 

// PlaceAgain-PlaceOptionsShowing-SELECTION.jsx
// Uwe Laubender

//DESCRIPTION:Select a placed image, PDF or InDesign document to replace it with itself getting options

/**
* @@@BUILDINFO@@@ PlaceAgain-PlaceOptionsShowing-SELECTION.jsx !Version! Fri Sep 09 2016 14:09:53 GMT+0200
*/

/*
	Posted in this thread at Adobe InDesign Forum:
	"Toggle pages of a linked Indesign document inside Indesign?"
	mmackinven | Sep 9, 2016
	WARNING: LINK IS NOT VALID ANYMORE
	https://forums.adobe.com/message/8993859#8993859
	
	You can either select the placed file directly or its container frame.
	Or, if its part of a group, the group itself.
	Or, if the container frame is pasted inside another object, that object.
	
*/

placeAgainSelection();

function placeAgainSelection()
{
	if(app.documents.length == 0){alert("ERROR"+"\r"+"No document is open."); return};
	if(app.selection.length != 1){alert("ERROR"+"\r"+"Select one single item containing a placed file."); return};

	// The placed object is selected:
	if
	(
		app.selection[0].constructor.name == "ImportedPage" || 
		app.selection[0].constructor.name == "PDF" ||
		app.selection[0].constructor.name == "EPS" ||
		app.selection[0].constructor.name == "Image" ||
		app.selection[0].constructor.name == "PICT" ||
		app.selection[0].constructor.name == "WMF"
	)
	{	
		var graphic = app.selection[0];
	};
	
	else if(app.selection[0].allGraphics.length == 0){return};
	
	// The container of the placed object is selected:
	else{var graphic = app.selection[0].allGraphics[0]};

	// Two important checks:
	// Case 1: Graphic was pasted on the page from e.g. PhotoShop:
	if(graphic.itemLink == null){alert("ERROR"+"\r"+"The graphic was pasted on the page. The original file cannot be found.");return};
	// Case 2: Link is not available, because placed graphic was renamed, removed or otherwise is not available:
	var file = File(graphic.itemLink.filePath);
	if(!file.exists){alert("ERROR"+"\r"+"\""+file.name+"\""+"\r"+"File cannot be found."); return};
	
	// If you cancel the place options dialog, no error will be thrown:
	try{
	graphic.place(file,true);
	}catch(e){};
};

 

Regards,
Uwe Laubender

( ACP )

Likes

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
Adobe Community Professional ,
Mar 12, 2019 Mar 12, 2019

Copy link to clipboard

Copied

I like to use this script written by Roland Dreger: Indesign Script - Seiten-Eigenschaften platzierter PDF-, AI- und INDD-Dateien ändern

This is available as a startup script, so it makes it possible to right-click on a PDF/INDD/AI file and call up an option to edit it:

Screen Shot 2019-03-12 at 21.56.47.png

Likes

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
New Here ,
Mar 12, 2019 Mar 12, 2019

Copy link to clipboard

Copied

LATEST

These are both great, exactly what I was looking for,

Thanks,

Likes

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