Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

changing part of a string



Hi, 

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
and replace parts of a string or do I have to change my text item delimiters
to ":" and then replace out item 3 with the new text?

In my test scenario it will be always item 3 but is there a way to address
simply a specific section in an image path and replace that in a sort of
search and replace.

G5:bigfolder:2ndfolder:CMYK images:myfolder:image1.eps 

I have about 10x20x30 paths to change so a script comes in handy. Any idea or
suggestions would be helpful.

Best, Patrik
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-users/email@hidden
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.