Simple Quark question

OIC

set theText to choose file with prompt "Please select the first file."
set story 1 of text box 1 of page 1 to "some text"
set story 1 of text box 1 to theText

That’s not quite what you wanted, since both set story lines set the WHOLE story. I’m trying to remeber the ‘place text at end of story’ syntax in QX, so you could do them both, but it’s escaping me at the moment.

FWIW, the problem you were having was it thought “some text” was part of the file path.

Also, importing MS Word (shudder) like that might bring up a filter dialog box, which could cause problems.

–tet

: I’m trying to remeber the ‘place text at end
: of story’ syntax in QX, so you could do them both, but it’s
: escaping me at the moment.

The following works:

tell application "QuarkXPress? 4.11"
    tell document 1
        set theText to choose file with prompt "Please select the first file."
        set story 1 of text box 1 to theText
        set story 1 of text box 1 to ("some text" & story 1 of text box 1)
    end tell
end tell

–tet