🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #9848

Re: [AS] Moving to Guide Others Layer

#9848
From: Jean-Claude_Tremblay
Date: Wed, 19 Jul 2006 17:13
27 lines
1541 bytes
Ok, for the benefits of all... Here is my final scripts.

Goal: Move all Guides on All pages to a layer "Guides"

--

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
         tell myDocument
            set myLayer to make layer with properties 
{name:myGuidesLayerName}
         end tell
      end try
      
      repeat with i from 1 to (count of spread of myDocument)
         set the item layer of every guide of spread i of myDocument to 
myLayer
      end repeat
      
   end tell
end tell
Technical Details
Message-ID: <jctremblay-7EB4F2.13130119072006@www.adobeforums.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news3.google.com!news.glorb.com!syros.belnet.be!news.belnet.be!news.stben.net!webcrossing
References: <jctremblay-365855.11572819072006@www.adobeforums.com> <3bc0f73f.0@webcrossing.la2eafNXanI> <jctremblay-012AA4.12451219072006@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: Jean-Claude_Tremblay@adobeforums.com
Newsgroups: adobe.scripting.indesign
Subject: Re: [AS] Moving to Guide Others Layer
Message-ID: <jctremblay-7EB4F2.13130119072006@www.adobeforums.com>
Date: Wed, 19 Jul 2006 10:13:01 -0700
References: <jctremblay-365855.11572819072006@www.adobeforums.com> <3bc0f73f.0@webcrossing.la2eafNXanI> <jctremblay-012AA4.12451219072006@www.adobeforums.com>
Lines: 28
Organization: Quadriscan Inc
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!news2.google.com!news3.google.com!news.glorb.com!syros.belnet.be!news.belnet.be!news.stben.net!webcrossing