Author Topic: find text and replace images  (Read 1296 times)

0 Members and 1 Guest are viewing this topic.

Offline arul

  • Visitor
  • Posts: 3
  • Karma: 0
find text and replace images
« on: May 20, 2010, 06:29:03 AM »
Hi all

Here I am trying to find text and replace by images. Here is my work I am hang in what next?

set the sourceFolder to choose folder with prompt "Select the directory containing the equations:"

set the fileList to list folder sourceFolder without invisibles

repeat with i from 1 to the number of items in the fileList

set currentItem to item i of the fileList

set currentFilePath to ((sourceFolder as string) & currentItem)

display dialog currentItem & currentFilePath

end repeat

That displays Eqn01.eps and Eqn02.eps
I have listed the EPS files from folder.

My Quark document like this

some text.........**Eqn01.eps**..............

some text.........**Eqn02.eps**..............

Now I want to find **Eqn01.eps** and replace as inline object Eqn01.eps

Offline Publi-Script

  • Administrator
  • Hero Member
  • *****
  • Posts: 596
  • Karma: 16
  • Gender: Male
  • Automate your Life!
    • Publi-Script.com
Re: find text and replace images
« Reply #1 on: May 20, 2010, 07:43:33 PM »
Do you have Xtag? If not, get it (even in demo mode)
Michel Lemieux
Forum Administrator
-------------------------
OS X 10.6.4
Quark 6.5 / 7.5 / 8.1.6
Adobe Design Premium CS / CS2 / CS3 / CS4 / CS5
Script Debugger 4.5