🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #9673

Re: [AS] Moving to Guide Others Layer

#9673
From: Jean-Claude_Tremblay
Date: Thu, 20 Jul 2006 10:15
31 lines
1618 bytes
Olivier, thanks, that will make it even faster and working on master 
also.

JC

> Hi Jean-Claude,
> 
> If you want to move all guides of a document in a layer, you don't need to 
> make a loop.
> 
> Here is two examples:

>  
> tell application "Adobe InDesign CS2" 
> 	set myDocument to active document 
> 	set myGuidesLayerName to "Guides" 
> 	tell myDocument 
> 		try 
> 			set myLayer to layer myGuidesLayerName of myDocument 
> 		on error 
> 			set myLayer to make layer with properties {name:myGuidesLayerName} 
> 		end try
> 
> 		-- If you want to move all guides of the document in a layer (include 
> master spread)  
> 		set the item layer of every guide to myLayer
> 
> 		-- If you want to move all guides of every spread in a layer  
> 		set the item layer of every guide of every spread to myLayer 
> 	end tell 
> end tell
Technical Details
Message-ID: <noway-BB122B.06150320072006@www.adobeforums.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news2.volia.net!syros.belnet.be!news.belnet.be!news.stben.net!webcrossing
References: <jctremblay-365855.11572819072006@www.adobeforums.com> <3bc0f73f.3@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,db3353fd3e0f7bfe
X-Google-Attributes: gidf939a,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Jean-Claude_Tremblay@adobeforums.com
Newsgroups: adobe.scripting.indesign
Subject: Re: [AS] Moving to Guide Others Layer
Message-ID: <noway-BB122B.06150320072006@www.adobeforums.com>
Date: Thu, 20 Jul 2006 03:15:03 -0700
References: <jctremblay-365855.11572819072006@www.adobeforums.com> <3bc0f73f.3@webcrossing.la2eafNXanI>
Lines: 34
Organization: -
User-Agent: MT-NewsWatcher/3.4 (PPC Mac OS X)
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news2.volia.net!syros.belnet.be!news.belnet.be!news.stben.net!webcrossing