Quark syntax for creating a new paragraph with text
Quark syntax for creating a new paragraph with text
- Subject: Quark syntax for creating a new paragraph with text
- From: "Wadson, David" <email@hidden>
- Date: Tue, 9 Jul 2002 15:07:32 -0400
What is the proper syntax for creating a new paragraph out of some text.
What I've gotten to work is:
tell application "QuarkXPress"
tell text box "textBoxName"
set newParagraph to make new paragraph at end
set (every text of story 1 where it is "word ") to
currentParagraphContents
end tell
end tell
Is there not some way to eliminate the extra step of replacing "word" with
the actual text I want. Also, I end up with an extra paragraph at the end of
the text box using this method that I then have to strip out.
The paragraphs I need to make are all contained in a list and are to be
inserted into a text box which is originally empty when the script runs...
Thanks. I'm pretty sure there's a simpler way of combining the two lines but
I'm getting a severe headache trying to figure it out...
Dave
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.