🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #19427

Re: Scripting the Library

#19427
From: Kari Puikkonen
Date: Thu, 19 Dec 2002 08:38
29 lines
1571 bytes
Hou!

Here is the script that works with A):



tell application "InDesign 2.0.2" 
	set myDocument to document 1 
	set active layer of active window to layer "Graphic layer" of myDocument 
	set myLayer to "Graphic layer" 
	--Open an existing library (you'll have to fill in your own file path)  
	set myLibrary to open "HD:Users:Me:Documents:My Projects::Graphic Library" 
	tell myLibrary 
		--Get an asset by name.  
		set myAsset to asset "My graphic" 
		--Place the asset in the document.  
		place myAsset on myDocument destination layer myLayer 
	end tell 
end tell



�but for the B), I couldn't get this line to work in any way:

set item layer of (page items whose content type is graphic) to myLayer

It probably needs some extra code that I can not figure out�

Kari
Technical Details
Message-ID: <1de70826.10@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX
References: <1de70826.-1@WebX.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: f939a,908e760c2ea9fcae
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2002-12-19 01:08:05 PST
From: "Kari Puikkonen" <kari.puikkonen@welho.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: Re: Scripting the Library
Message-ID: <1de70826.10@WebX.la2eafNXanI>
Date: Thu, 19 Dec 2002 00:38:40 -0800
References: <1de70826.-1@WebX.la2eafNXanI>
Lines: 27
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit