Re: Error importing RTF into Quark XPress
Re: Error importing RTF into Quark XPress
- Subject: Re: Error importing RTF into Quark XPress
- From: Kurt Schreckengost <email@hidden>
- Date: Wed, 18 May 2005 08:50:18 -0400
Has anyone tried importing RTF into Quark Xpress? I could really use
some help, thanks.
Kurt
Kurt Schreckengost wrote:
Hi,
I have two questions. First I am trying to import an RTF text file
into a text box in Quark Xpress, but I am getting an error. I can
import the text file through the "Get Text" menu option however it
will not work through AppleScript. The script will work with text
saved as XTags but I intend on creating an AppleScript Studio App.
that will save text as RTF to be imported into Quark.
tell application "QuarkXPress"
set address_file to (path to desktop as text) & "address.rtf"
set {import styles, convert quotes} to {true, true}
set story 1 of text box 1 of page 1 of front document to
alias address_file
end tell
Results >> "QuarkXPress got an error: Can't set story 1 of text box 1
of page 1 of document 1 to alias
\"AppleRocks:Users:kurt:Desktop:address.rtf\"."
Question 2: How do I get a reference to a project with the currently
selected text box? I want to be able to address the project window as
it may not be the front project.
set project_name to name of project of current box
close project "project_name" without saving
Results >> "QuarkXPress got an error: Can't get name of project of
current box."
set obj to a reference to the project of the current box
close obj without saving
Results >> "QuarkXPress got an error: Can't get project of current box."
I have tried many variations and searched the archives on both issues
with no success. Any help would be much appreciated.
(Quark XPress 6.5 on OS X 10.3.9.)
Good health always,
Kurt Schreckengost
Reliance Vitamin Co.
TEL: 732.537.1220 ext. 33
FAX: 732.537.1526
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
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:
This email sent to email@hidden