I’ve written a few scripts over the years and have read with interest the many solutions people have developed here at MacScripter. However, with all this knowledge I still cannot fathom how to achieve what, to me at least, is a simple task: take a list of search words and replace words from FileMaker, open a Quark doc (again from FM; this I can do) then using QuarkXPress Find & Replace each of these passed lists.
I’ve tried a ‘proper’ AppleScript and even tried cheating with UI scripting. Neither works for me. The latter bring up the Find & Replace floating window and allows me to populate the find and replace text areas, but whenever I try to ‘click checkbox’ or ‘click button’ nothing happens (besides the item in question flickering a change of colour to indicate a mouse click).
Ideally I’d like to use an AppleScript over UI scripting as it would likely be faster and more robust. I’d show you a script I’ve developed, but frankly I doubt anything I’ve cobbled-together would actually help here.
As I’ve said above, I can script FileMaker to gather the criteria for each document which needs to be replaced and I can open the Quark doc from FM (as FM knows where the doc is stored etc.). It’s just the Find & Replace within the document that I cannot achieve.
Any suggestions will be very greatly appreciated!