Hi,
Im new to quarkXPress and applescript. I want to search for a content in quark document and replace it with null values.
I tried using many seacrh and replace function but it is not working.The code i used is
tell application "QuarkXPress"
activate
tell document 1
set TheStories to count of every story
repeat with i from 1 to TheStories
set mysearch to (a reference to (text of story i whose contents of it = "means writing"))
set contents of mysearch to "Figure"
return
end repeat
end tell
end tell
Input:Communication means writing, speaking, and showing visuals to other people, as well as listening to and observing others
after running the script it replace as "CommunFigure writing, speaking, and showing visuals to other people, as well as listening to and observing others"
Please help me as soon as possible.I will be very thankfull.
Thanks in advance.