Re: InDesign CS2, XML, and graphics
Re: InDesign CS2, XML, and graphics
- Subject: Re: InDesign CS2, XML, and graphics
- From: Terry Ofner <email@hidden>
- Date: Tue, 18 Mar 2008 16:52:05 -0400
It took me a long time to figure out how to address xml elements
using applescript. Here, for example, is a line that deletes elements
from the xml document tree at a certain level from document root
(element 1):
try
if the name of (the markup tag of every XML element of every XML
element of every XML element of XML element 1 of myDoc) contains "SS"
or "GS" then
delete every XML element of every XML element of every XML element
of XML element 1 of myDoc
end if
end try
It isn't pretty. Have you tried something like this:
get properties of every XML element of XML element 1 of myDoc
I think that should return some information that you might be able to
use.
t.o.
On Mar 18, 2008, at 2:20 PM, Houston, Brad wrote:
Hi Stanley, and thanks for the response.
"xml content of XML element id 4", "graphics of XML element id 4",
"image of
XML element id 4", "graphic of page item of XML element id 4" all
return
"can't get...". I've been reduced to mindlessly trying every possible
combination I can think of.
Using "select page item 2 of page 1" selects the graphic/graphic
frame on
the page, and "select text of XML element 3" selects the text, but
"select
page item of XML element 3" gets me a "doesn't understand..."
Still seeking. Next step is to write a program that will run
through every
permutation of code possible until something good happens, but I'm
hoping
that someone knows the secret phrase.
Brad
On 3/17/08 5:11 PM, "Shane Stanley" <email@hidden>
wrote:
What does "xml content of XML element id 4" return? Page items
fails because
graphics aren't page items.
The dictionary suggests man of the graphics classes can be
elements, but not
graphics themselves. Have you tried "graphics of XML element ..."?
With a
.tif, try "images of XML element..."
--------------------------------------------------------
The information contained in this message is intended only for the
recipient, and may be a confidential attorney-client communication
or may otherwise be privileged and confidential and protected from
disclosure. If the reader of this message is not the intended
recipient, or an employee or agent responsible for delivering this
message to the intended recipient, please be aware that any
dissemination or copying of this communication is strictly
prohibited. If you have received this communication in error,
please immediately notify us by replying to the message and
deleting it from your computer. The McGraw-Hill Companies, Inc.
reserves the right, subject to applicable local law, to monitor and
review the content of any electronic message or information sent to
or from McGraw-Hill employee e-mail addresses without informing the
sender or recipient of the message.
--------------------------------------------------------
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (applescript-
email@hidden)
Help/Unsubscribe/Update your Subscription:
40comcast.net
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden