🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: adobe.scripting.indesign
2 messages
2 total messages Started by dtpartner Fri, 06 Feb 2009 08:06
InDesign CS4 [Mac] –Unembed the embedded in-line pictures SCRIPT– / –Actions SCRIPT–
#1407
Author: dtpartner
Date: Fri, 06 Feb 2009 08:06
15 lines
1984 bytes
The writers of scientific material send me their LaTeX/Scientific WorkPlace (SWP) documents to layout their book.

For your information: �In Scientific WorkPlace [only for PC], you can typeset complex technical documents with LaTeX, "the industry standard for mathematics typesetting". Publishers and writers of scientific material use LaTeX extensively. When you typeset, LaTeX automatically generates footnotes, indexes, bibliographies, tables of contents, and cross-references.�

InDesign can not place/import these LaTeX/SWP documents. When they export it to Word the Mathematical formulas will turn into many (more than 100) in-line .eps RGB pictures. These pictures need to be updated in illustrator and placed back in InDesign.

Try to solve it with a script. That will Unembed all (more than 100) in-line pictures (Formulas).

* **If someone knows a script that will Unembed the embedded in-line pictures, please let me know...!***

Already made an Action set in Illustrator for changing the Object Fill Color and Stroke to 100K (instead off FC black), Overprint Fill, Overprint Stroke, Find and Replace Font. Followed by a Link Update in InDesign.

In this case it would also be nice to have Actions in InDesign (one off my wishes on the InDesign Wish List).

* ** If there is an Actions script for InDesign, i am interested as well.***
Re: InDesign CS4 [Mac] –Unembed the embedded in-line pictures SCRIPT– / –Actions SCRIPT–
#1424
Author: Eric
Date: Fri, 06 Feb 2009 22:41
22 lines
1413 bytes
Well here is a basic script that cuts all the inline graphics and pastes them into the document... I have no clue how you would get them *back* into the text, mind you! o_O

tell application "Adobe InDesign CS3" 
	tell active document 
		set myStories to every story 
		repeat with thisStory in myStories 
			set storyGraphics to all graphics of thisStory 
			if length of storyGraphics > 0 then 
				repeat with thisGraphic in storyGraphics 
					select parent of thisGraphic 
					tell application "Adobe InDesign CS3" 
						cut 
					end tell 
					select nothing 
					tell application "Adobe InDesign CS3" 
						paste 
					end tell 
				end repeat 
			end if 
		end repeat 
	end tell 
end tell
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads