Currently working on a command in AppleScript to trim weight data we receive from a scale. We receive the weight in the following format “ X.XXX. lb. “
The Xs representing numbers.

Using the following command we’ve managed to trim characters and get the weight to read as “X.XXX..” in our files metadata:

“ | sed ‘s/[.^0-9]//g’”

We’re hoping to also trim off the two decimal points following the thousandth character in the weight data. Unsure of where to go.