Getting Styled Text from FileMaker Pro into QuarkXPress

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

Perhaps this one could help: http://scriptbuilders.net/files/rtftoquarkxtags2.1.html

I found a copy of the old “Clipboard to Xpress Tags” OSAX. I have placed it in the ScriptingAdditions folder in the system folder. Neither one of these calls seems to work:


set styledText to («event OLIEXPTG») --compiles but doesn't work
set styledText to (clipboard converted to Xpress Tags) -- doesn't compile

I will take a look at the script you suggested and see if I can figure out how to make it work.

Browser: Safari 417.8
Operating System: Mac OS X (10.4)