Article View: adobe.scripting.indesign
Article #26AS - Telling ID to find a specific layer
From: Rosemary Cantrell
Date: Wed, 01 Apr 2009 18:32
Date: Wed, 01 Apr 2009 18:32
23 lines
2651 bytes
2651 bytes
Hi all,
I trying to create a script that will be a part of a folder action
where I've grabbed an existing script that I use to export PDFs and
instead of the PDF making I'm trying to have it find an existing layer
called "notes" in my document and then change it's layer color to
magenta. Here's the part that seems to wrong...
tell application "Adobe InDesign CS3"
launch
set myDocument to open file (source_file as string)
tell myDocument
set myLayerN to page item layer "notes"
set myLayer to make myLayerN with properties {layer color:magenta}
save myDocument to target_path
close myDocument
end tell
end tell
I'm getting an error saying invalid parameter. My guess is that I'm
not finding the notes layer correctly. Can anyone offer any guidance?
TIA,
Rosie
Technical Details
Message-ID:
<473fec40904011132n550f1c34u543b0b77936320fc@mail.gmail.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!newshub.sdsu.edu!webcrossingShow Full Headers
Complete Article Headers
X-Google-Thread: f939a,68bbf0d760031dca,start
X-Google-Attributes: gidf939a,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: Rosemary Cantrell <rosie.cantrell@gmail.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: AS - Telling ID to find a specific layer
Message-ID: <473fec40904011132n550f1c34u543b0b77936320fc@mail.gmail.com>
Date: Wed, 1 Apr 2009 11:32:18 -0700
Lines: 23
Received: from mail-qy0-f110.google.com [209.85.221.110] by adobeforums.com; Wed, 1 Apr 2009 11:32:52 -0700
Received: by qyk8 with SMTP id 8so415726qyk.17
for <adobe.scripting.indesign@adobeforums.com>; Wed, 01 Apr 2009 11:32:18 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=gamma;
h=domainkey-signature:mime-version:received:date:message-id:subject
:from:to:content-type:content-transfer-encoding;
bh=3wCyx0G56XpuyHZv2Kjg7aJ5gKjKdVPsyusIs6EDXcY=;
b=JQFzRGZ3JHXtsBDI6bCxwf4tkg16UbYoPdjO8eNNpbdd569Xgka30xQIRQv3qGv2Vz
8ghZSJYvrsf6wilMIZw0C1Otq+xUnjvAvZzy6qmnqiTVorPmMjam8zhjy5/zXpM0bqoa
EUiLE+E4R6EFKklrlssQBWFOLGRptlPIltdF4=
DomainKey-Signature: a=rsa-sha1; c=nofws;
d=gmail.com; s=gamma;
h=mime-version:date:message-id:subject:from:to:content-type
:content-transfer-encoding;
b=lQZQCckzROPKnQJ68G98HjQKzMPxz36GnACMP/GuyXBP3Dy4h+FsTLJW8KtqPGp1Zi
GmwlELndL3fSkLaa7ZDy0oFayDtKuWOWDmzKvoZVgtiWhop1hsiREAewzupkHNVLYspm
m3zI74WS74vnEiCMT63Zq4ssnervD8jIRDrM0=
Received: by 10.229.85.21 with SMTP id m21mr3286439qcl.9.1238610738158; Wed,
01 Apr 2009 11:32:18 -0700 (PDT)
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit