Find and Replace text in quark file using click event in app

Discuss AppleScripting for QuarkXPress 10, 9 & 8 (and before)
Post Reply
mubeen.s
Posts: 0
Joined: 13 May 2013, 06:15

Find and Replace text in quark file using click event in app

Post by mubeen.s » 23 May 2013, 01:26

Hi,
I want to find and replace content in quark file, I tried the below code, click even is not working for change all.
Please any one help me on this.


tell application "QuarkXPress"
activate
tell application "System Events"
tell process "QuarkXPress"
click menu item "Find/Change" of menu 1 of menu bar item "Edit" of menu bar 1
keystroke "oldtext" & tab & "newtext" & return
keystroke return using option down --button "Find First"
click button "Change All" of window "Find/Change"
--set {x, y} to position of button "Change All" of window "Find/Change"
--click at {x, y}
end tell
end tell
end tell

Post Reply

Return to “QuarkXPress 8, 9 & 10: AppleScript”