Quark Problem
Quark Problem
- Subject: Quark Problem
- From: Simon J Lusty <email@hidden>
- Date: Tue, 10 Dec 2002 20:18:39 +0000
I apologize for not replying sooner. Many thanks to Hans and Nino for your
suggestions.
I spent a while trying out the ideas but it kept being its usual unhelpful
self giving me error messages that defy logic. I do have LNS Script Debugger
- have owned it for a year or so now but never got around to going up the
learning curve to get to grips with it. I am now giving it a go though it
too can return some pretty unhelpful error messages, but I guess these are
coming from AppleScript not DeBugger.
Below is the solution I eventually botched together that seems to do what I
was after. (Plus loads of help from Shirley Hopkins book.) I dare say in
scripting terms it is a bit crude so any comments would be well received.
set theText to (the object reference of paragraphs of text box y of
story "tex" of document 1 whose name of style sheet is "SJLExpl text") as
list
set theCount to count of items in theText
if theCount > 1 then
set comm to item 1 of theText as text
repeat with z from 2 to theCount
set textitem to item z of theText as text
set comm to comm & textitem
end repeat
else if theCount = 1 then
set comm to theText as text
end if
Simon
_______________________________________________
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.