Sunday, July 22, 2018

#1 2012-10-15 11:52:45 pm

rypert
Member
Registered: 2012-10-15
Posts: 1

Change text based on file name

Can anybody help me with an automater script that looks for a file name and then do a search and replace based on the file name

Here`s an example:
file A and B has the word "green" in them, i want to change the word "green" to "blue" if the file name is A end "red" if the file name is B

Thanks
Kristian

Offline

 

#2 2013-03-02 05:11:27 pm

pjdube
Member
Registered: 2012-10-13
Posts: 77

Re: Change text based on file name

I think I get what you want to do.

Try this in automator. I tried it and it worked for me. I created three files on my desktop and called them "greengolucky" "howgreen" and "silvergreen". Then I executed the below workflow and they found these files and changed them to "bluegolucky" "howgreen" and "silverblue"

t.JPG

Let me know if that works!

Phil

Last edited by pjdube (2013-03-05 06:38:58 pm)


Filed under: autmator

Offline

 

Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)