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 1log 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>) |
|