Article View: adobe.incopy.scripting
Article #8Adding new notes to Mac InCopy CS2 seems, well, odd
From: Aaron_Headly
Date: Sat, 16 Dec 2006 15:58
Date: Sat, 16 Dec 2006 15:58
43 lines
2667 bytes
2667 bytes
I am trying to add new notes to InCopy CS 2 docs (so that editors can see where 'invisible' Character Styles have been applied for indexing purposes).
I'm in early testing, and I can create notes, but I've hit a wall as far as controlling where the notes show up (which is critical). Oh yeah, I can't seem to control the contents of the notes either, which isn't critical.
Has anyone cracked this one?
Thanks in advance.
Aaron
Script and Log follow:
=====================
tell application "Adobe InCopy CS2"
tell story id 183 of document 1
set tryIt to make new note with properties {text:"Hello?", story offset:2}
-- I have also tried stuff like "at beginning of its text flow" and
others, they all fail
end tell
set testThis to the properties of every note of every story of document
1
set testThat to the text of note 1 of story id 183 of document 1
log testThat
log testThis
end tell
======================
tell application "Adobe InCopy CS2"
make new note with properties {text:"Hello?", story offset:2}
note id 342 of text flow id 183 of document "Untitled-1.incx"
get properties of every note of every story of document 1
{{collapsed:false, id:342, story offset:92, user name:"Admin", creation date:date "Saturday, December 16, 2006 10:53:57 AM", modification date:date "Saturday, December 16, 2006 10:53:57 AM", parent text frame:text frame id 202 of page id 173 of spread id 168 of document "Untitled-1.incx", parent:text flow id 183 of document "Untitled-1.incx", index:1, object reference:note id 342 of text flow id 183 of document "Untitled-1.incx", label:""}}
get every text of note 1 of story id 183 of document 1
{""}
(**)
(*collapsed:false, id:342, story offset:92, user name:Admin, creation date:Saturday, December 16, 2006 10:53:57 AM, modification date:Saturday, December 16, 2006 10:53:57 AM, parent text frame:text frame id 202, parent:text flow id 183, index:1, object reference:note id 342, label:*)
end tell
Technical Details
Message-ID:
<3bc29792.-1@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news.glorb.com!news.ecp.fr!news.isoc.lu!news.stben.net!webcrossingShow Full Headers
Complete Article Headers
X-Google-Thread: 1efe4a,bf028d994dc0a32,start X-Google-Attributes: gid1efe4a,public X-Google-Language: ENGLISH,ASCII-7-bit From: Aaron_Headly@adobeforums.com Newsgroups: adobe.incopy.scripting Subject: Adding new notes to Mac InCopy CS2 seems, well, odd Message-ID: <3bc29792.-1@webcrossing.la2eafNXanI> Date: Sat, 16 Dec 2006 07:58:04 -0800 Lines: 51 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!news.glorb.com!news.ecp.fr!news.isoc.lu!news.stben.net!webcrossing