Article View: adobe.scripting.indesign
Article #8929Re: Are there policies for usage of labels?
From: Shane_Stanley
Date: Wed, 20 Sep 2006 22:17
Date: Wed, 20 Sep 2006 22:17
27 lines
2241 bytes
2241 bytes
On 21/9/06 6:22 AM, "Gerald Singelmann" <member@adobeforums.com> wrote:
> I put those lines in since I wasn't sure about the persistance of the list
> "selection".
> How safe is it to work with it? Isn't it so that the list is gone when the
> script creates something and thereby possibly de-selects the previous
> selection?
You've safely stored it with "set aSel to selection"; AppleScript resolves
selection straight away.
>
> It seems that my college prof was successfull in hitting his ideas of object
> oriented programming into my head. It feels wrong to put the layer information
> into any other object than the object that lies on that layer.
> Do you mean there would be one command to build all the layer information into
> one string?
Right. Something like this:
set labelNames to name of item layer of every item of aSel
repeat with n from 1 to count aSel
tell item n of aSel to insert label value (item n of labelNames) key
"gslg"
end repeat
--
Shane Stanley <sstanley@myriad-com.com.au>
Technical Details
Message-ID:
<C137FB37.3009F%sstanley@myriad-com.com.au>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news2.volia.net!news.ecp.fr!news.taunusstein.net!news.mb-net.net!open-news-network.org!news.isoc.lu!webcrossingReferences:
<3bc1a682.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,bb0ad9c2d1a7e9a8 X-Google-Attributes: gidf939a,public X-Google-Language: ENGLISH,ASCII-7-bit From: Shane_Stanley@adobeforums.com Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news2.volia.net!news.ecp.fr!news.taunusstein.net!news.mb-net.net!open-news-network.org!news.isoc.lu!webcrossing Newsgroups: adobe.scripting.indesign Subject: Re: Are there policies for usage of labels? Message-ID: <C137FB37.3009F%sstanley@myriad-com.com.au> Date: Wed, 20 Sep 2006 15:17:59 -0700 References: <3bc1a682.-1@webcrossing.la2eafNXanI> Lines: 36 Received: from bld-mail07.adl2.internode.on.net [203.16.214.71] by adobeforums.com; Wed, 20 Sep 2006 19:02:22 -0700 Received: from [192.168.1.2] (unverified [59.167.75.174]) by mail.internode.on.net (SurgeMail 3.2f) with ESMTP id 44643247 for <adobe.scripting.indesign@adobeforums.com>; Thu, 21 Sep 2006 07:48:00 +0930 (CST) Return-Path: <sstanley@myriad-com.com.au> User-Agent: Microsoft-Entourage/11.2.5.060620 Thread-Topic: Are there policies for usage of labels? Thread-Index: AcbdAqEn34FMCUj1EduPpQARJHm3nA== MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit