r/applescript • u/Gusto6563 • Jun 18 '24
Finding and replacing a value in a string
I’m new to applescript, and I’m trying to get and modify a string value inside a string, like in “fname=John, money=1246” for example, to replace the money value by 124. And I absolutely have no idea how to do it. Can someone tell me ? Thanks 🙏!
6
Upvotes
2
u/copperdomebodha Jun 19 '24
A standard way to replace text in AppleScript is to use text item delimiters.
—posting from mobile so I can’t compile that.
1
u/libcrypto Jun 18 '24