Article View: adobe.scripting.indesign
Article #9663Re: [AS] Moving to Guide Others Layer
From: Olivier_Berquin
Date: Thu, 20 Jul 2006 07:28
Date: Thu, 20 Jul 2006 07:28
33 lines
1385 bytes
1385 bytes
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
HTH
Oli.
Technical Details
Message-ID:
<3bc0f73f.3@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news2.volia.net!syros.belnet.be!news.belnet.be!news.stben.net!webcrossingReferences:
<jctremblay-365855.11572819072006@www.adobeforums.com>Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,db3353fd3e0f7bfe X-Google-Attributes: gidf939a,public X-Google-Language: ENGLISH,ASCII-7-bit From: Olivier_Berquin@adobeforums.com Newsgroups: adobe.scripting.indesign Subject: Re: [AS] Moving to Guide Others Layer Message-ID: <3bc0f73f.3@webcrossing.la2eafNXanI> Date: Thu, 20 Jul 2006 00:28:20 -0700 References: <jctremblay-365855.11572819072006@www.adobeforums.com> Lines: 31 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