I have a path that I need to change slightly:
Example:
G5:bigfolder:2 color:myfolder:image1.eps -- I need to change "2
color" only
G5:bigfolder:CMYK images:myfolder:image1.eps
How do I replace out just "2color" to "CMYK color" is it possible
to search
If you know, without searching, that you want to change text item 3,
then ...
set fullPath to "G5:bigfolder:2 color:myfolder:image1.eps"
set AppleScript's text item delimiters to {":"}
set text item 3 of fullPath to "CMYK images"
If you need to search for and test the text item, you might want to ...
set AppleScript's text item delimiters to {":"}
then get a list of path items;
determine which item to change;
change it;
convert list of path items back to a full path.