• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: In Adobe InDesign, how to untag XML tagging of the parent story of a found text object?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: In Adobe InDesign, how to untag XML tagging of the parent story of a found text object?


  • Subject: Re: In Adobe InDesign, how to untag XML tagging of the parent story of a found text object?
  • From: "Houston, Brad" <email@hidden>
  • Date: Mon, 08 Dec 2008 08:52:16 -0800
  • Importance: normal
  • Priority: normal
  • Thread-topic: In Adobe InDesign, how to untag XML tagging of the parent story of a found text object?

Title: Re: In Adobe InDesign, how to untag XML tagging of the parent story of a found text object?
Something I do a lot of.

tell application "InDesign CS"
    set myDoc to document 1 --document 1 is current document
    tell myDoc
        my hier(XML item id 1)
    end tell
    beep 3
    display dialog "Done"
end tell

on hier(z) --go through elements
    tell application "InDesign CS"
        set myelements to every XML element of z
        repeat with x in myelements
            if (the name of the markup tag of x) = Tag_Name then
                Do something
           end if
            if the (count of XML elements of x) > 0 then my hier(x)
        end repeat
    end tell
end hier


On 12/8/08 5:36 AM, "William Adams" <email@hidden> wrote:

> On Dec 5, 2008, at 4:37 PM, Shane Stanley wrote:
>
>> On 6/12/08 4:02 AM, "William Adams" <email@hidden> wrote:
>>
>>> how does one untag the parent story?
>>
>> You don't; the untag command operates on XML elements. So you need  
>> to untag
>> the associated XML elements.
>
>
> OIC.
>
> Do you (or anyone else?) have sample code for finding all text tagged  
> w/ a particular XML tag or a link to such on-line? I'm not finding an  
> example of such and reading the documentation isn't helping much and  
> my attempts keep generating error messages.
>
> Thanks!
>
> William

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      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >Re: In Adobe InDesign, how to untag XML tagging of the parent story of a found text object? (From: William Adams <email@hidden>)

  • Prev by Date: Distribute File to all users
  • Next by Date: applescript shell script SCP?
  • Previous by thread: Re: In Adobe InDesign, how to untag XML tagging of the parent story of a found text object?
  • Next by thread: Renaming a zipped file so it works on a PC
  • Index(es):
    • Date
    • Thread