Re: Quark Problem (Simon)
Re: Quark Problem (Simon)
- Subject: Re: Quark Problem (Simon)
- From: nino <email@hidden>
- Date: Mon, 09 Dec 2002 21:30:53 +0100
>
Da: email@hidden
>
Risposta: email@hidden
>
Data: Sat, 07 Dec 2002 22:00:15 -0800
>
A: email@hidden
>
Oggetto: applescript-users digest, Vol 3 #1128 - 6 msgs
>
>
I am trying to make a script loop through text boxes (about 100) and at each
>
box take all the text in one style sheet and pop it into a FileMaker field.
>
The looping and FileMaker stuff work OK but getting every paragraph in the
>
named style sheet results in just the last paragraph in that style sheet
>
being grabbed and then the last character, usually a full stop but not
>
always, being lost.
try with:
tell application "QuarkXPress"
tell document 1
repeat with i from 1 to count of text box
try
tell text box i
set a to text of (every paragraph where name of style sheet is "Titolo")
--subsitute the "current box reference and style spec name as needed
if class of a is not list then set a to {a} --if only one paragraph
--result is a list of strings {"para 1","para 2"...}
on error
-- your action if no paragraph in the specified style sheet exists
end try
-- if you need to have them as a single text divided into paragraphs then
set AppleScript's text item delimiters to return
set a to a as string
set AppleScript's text item delimiters to ""
-- your export to fm code
end repeat
end tell
end tell
nino
_______________________________________________
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.