🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #2350

move images to other layer with Javascript

#2350
From: Johan_Wieland
Date: Tue, 30 Dec 2008 12:25
25 lines
1256 bytes
Hello,

i'm struggling with translating a applescript to javascript.

the script is intended to select all images, and move the selection to a new layer.
that new layer "images" should be not printable and not visible.
at this moment, i made a javascript wich creates the layer, with the right attributes.

the applescript code is:
set IDS to links
 set myLayer to images

			repeat with myCounter from 1 to (count IDS)
				set theFrame to parent of parent of item myCounter of IDS
				 try
					set properties of theFrame to {item layer:myLayer}
				end try
			end repeat

the javascript will be used with Indesing CS3 OSX 10.5

any help will be appreciated.
thanks in advance,

Johan
Technical Details
Message-ID: <59b76331.-1@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!newshub.sdsu.edu!webcrossing

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,b1467d2683cd2857,start
X-Google-Attributes: gidf939a,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: Johan_Wieland@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: move images to other layer with Javascript
Message-ID: <59b76331.-1@webcrossing.la2eafNXanI>
Date: Tue, 30 Dec 2008 04:25:03 -0800
Lines: 27
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit