• 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: Quark error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Quark error


  • Subject: Re: Quark error
  • From: "email@hidden" <email@hidden>
  • Date: Tue, 17 Nov 2009 08:45:38 -0800

I can't say for certain in this case, but many objects, including paragraphs, have read-only properties and will generate an error when you try to set them.
try this:

    set prop1 to properties of paragraph 1 of text box 1 of document 1
log prop1

Then look in script editor's apple event log and you'll see  what the properties are and you can choose which you want to change in your script.

The Quark dictionary will tell you which ones are read only and may offer a clue as which property has a range between 2 and 16.

HTH,

ES

On Nov 17, 2009, at 8:08am, Jan Bultereys wrote:

Hi all,

Does anyone know why this does not work?

---script
tell application "QuarkXPress"
    set prop1 to properties of paragraph 1 of text box 1 of document 1
    set properties of paragraph 1 of text box 1 of document 1 to prop1
end tell
---end script

error:
"QuarkXPress got an error: Value is outside the valid range of 2 to 16"

Many thanks for any feedback
Jan
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: 
 >Quark error (From: Jan Bultereys <email@hidden>)

  • Prev by Date: Re: AS for InDesign - find artwork set to overprint
  • Next by Date: XML handling
  • Previous by thread: Quark error
  • Next by thread: XML handling
  • Index(es):
    • Date
    • Thread