Some years ago (in the days of OS 7) I wrote a script that would take styled text out of FileMaker and place it into QuarkXpress. The script went something like this:
tell application "QuarkXPress"
activate
open file "Macintosh HD:Applications:Viva Allegro:T One Doc.qxp" use doc prefs yes
end tell
tell application "FileMaker Pro"
activate
open file "MacIntosh HD:Users:davidanderson:documents:NRbsk"
set current record to record 1 of layout "Data Entry"
do script "Copy Name to Clip"
set styledText to (Clipboard to XPress Tags) -- Clipboard to Xpress Tags OSAX
end tell
tell application "QuarkXPress"
set import styles to true
tell document 1
tell text box 1
set story 1 to (styledText as international text)
end tell
end tell
end tell
This no longer seems to work. I’m using an old OSAX named “Clipboard to Xpress Tags” from Sal Saloghian. Is there a more elegant way to do it noways? I’m using OS 14.04 with QuarkXpress 6.5