Apple Script question, change variable

Hi,
I use this script to extract metadata from pdf files
The values of "Aufl" are numbers, e.g. "1.000"
Now I need to eliminate the "."
"1.000" should be changed to "1000" before it is written to the custom token.
So in general I need a search&replace for "." within the variable "Aufl" done with Apple Script or "do shell script".
Can anyone help ?
Thanks
I use this script to extract metadata from pdf files
- Code: Select all
set posixPath to quoted form of (POSIX path of theFile) as string
set Aufl to (do shell script "exiftool -JoberstellungAuflage " & posixPath & " | awk -F ' ' '{print$6}'")
return {hazelExportTokens:{Auflage:Aufl}}
The values of "Aufl" are numbers, e.g. "1.000"
Now I need to eliminate the "."
"1.000" should be changed to "1000" before it is written to the custom token.
So in general I need a search&replace for "." within the variable "Aufl" done with Apple Script or "do shell script".
Can anyone help ?
Thanks