Import file into selected text

Discuss AppleScripting for QuarkXPress 10, 9 & 8 (and before)
Post Reply
Posts: 0
Joined: 15 Jan 2007, 14:37

Import file into selected text

Post by rgbherman » 23 Jul 2013, 11:45

I have a tagged file with stylesheets that I want to import into a selection of text in a Quark doc. Is it possible to do that without the Em Software?
I have tried this:
tell application "QuarkXPress"
set convert quotes to true
set import styles to true

import from alias "Macintosh HD:Users:rherman:Desktop:Automation:CIPtoQuark.txt"
end tell

As alternate route, I got System Events to recognize the import from the menu but couldn't then proceed to file selection. I have also tried copy and paste but I lose the stylesheets. In case it helps this is the text I am trying to import into the selected Quark text. Not doable?

@author:Haydock, Nickolas.
@CIP coverline:Beowulf on lm : adaptations and variations / Nickolas Haydock and E.L. Risden.
@CIP indent 4n:Includes bibliographical references and index.
@ISBN:ISBN 978-0-7864-6338-1
@CIP coverline:softcover : acid free paper
@CIP indent 4n:1.BeowulfFilm adaptations.I.Risden, Edward L., 1957II.Title.
@CIP indent 2n:PR1585.H392013
@LC:791.43[str]'[/str]657dc23 2013024311

Post Reply

Return to “QuarkXPress 8, 9 & 10: AppleScript”