Re: Quark (mainly) + FileMaker Pro kafuffle
Re: Quark (mainly) + FileMaker Pro kafuffle
- Subject: Re: Quark (mainly) + FileMaker Pro kafuffle
- From: "Bob.Kalbaugh" <email@hidden>
- Date: Tue, 23 Oct 2001 12:57:10 -0500
Just a thought...
One approach might be to have the loop routine first put the data from
fileMaker into a variable:
set theText to ""
repeat loop -- whatever
set theText to theText & theFullName & return & theLocation & " " & return
end repeat
And then in QXP with a document open containing 1 page with an auto text
box:
tell text box 1 of page 1 of document 1
set paragraph 1 to theText
end tell
Quark will push the text and create as many pages as is needed.
_bob.kalbaugh
10/23/01 10:50 AM, paul mccabe kampu at email@hidden wrote:
>
G'day ASlist,
>
>
I'll keep this as short yet succinct as possible.
>
>
The script is gathering all the information it needs from a FileMaker
>
database, sorting and organizing it to be inserted into a multi-paged,
>
text box linked Quark file. The file, at this time, has 6 pages that
>
contain nothing but empty text boxes (each page has one text box that's
>
linked to the text box on the next page). The text is being 'poured'
>
into these text boxes. I don't know how many pages of text will,
>
ultimately, be needed in the document.
>
>
The sub-routine below is being called from a repeat loop in another
>
sub-routine. The part I'm stuck on is the 'tell text box 1' below. Works
>
fine for page 1 but that's all (naturally).
>
>
on nameLocation(i, theFullName, theLocation)
>
tell application "QuarkXPress 4.11"
>
--activate
>
tell document 1
>
-- \|/ \|/ this is where the problem comes up.
>
tell text box 1--
>
set text of last paragraph to theFullName & return
>
set text of last paragraph to theLocation & " " & return
>
--" " this is a soft return (although it doesn't look like one here)
>
>
end tell
>
-- /|\ /|\ I'm stuck!
>
end tell
>
end tell
>
end nameLocation
>
>
I think I'm too close to the project to be objective about how to fix
>
the problem (although I know where the problem is, basically).
>
>
It's time to get a little air.
>
Thanks, in advance, for your help.
>
--
>
Paul
>
http://homepage.mac.com/pkampu/ (*not for the faint of heart*)
>
>
"No, TRY not. do or do not. There is no TRY." --Yoda(on error handling)
>
_______________________________________________
>
applescript-users mailing list
>
email@hidden
>
http://www.lists.apple.com/mailman/listinfo/applescript-users