When a script is saved as a bundle, it can use the localized string
command to find the appropriate string, e.g. in Contents/Resources/English.lproj/Localizable.strings
. If this is a format string, what is the best way to fill in the placeholders? In other words, what is the AppleScript equivalent of +[NSString stringWithFormat:]
?
One idea I had was to use do shell script
with printf(1)
. Is there a better way?