• 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
Error importing RTF into Quark XPress
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Error importing RTF into Quark XPress


  • Subject: Error importing RTF into Quark XPress
  • From: Kurt Schreckengost <email@hidden>
  • Date: Thu, 12 May 2005 12:34:44 -0400

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


  • Follow-Ups:
    • Re: Error importing RTF into Quark XPress
      • From: Kurt Schreckengost <email@hidden>
  • Prev by Date: Error Types
  • Next by Date: Re: moving an application window from one display to another
  • Previous by thread: Re: Error Types
  • Next by thread: Re: Error importing RTF into Quark XPress
  • Index(es):
    • Date
    • Thread