Hello Tony T1,
Thanks for reminding me of leading zero in day number although the %-d does not work with strftime(3) under OS X 10.6.8.
Instead I have to use something like this:
printf '%s %-d\n' $(date -jf'%F' +'%B %d' '2016-02-01')
or
printf '%s %d\n' $(date -jf'%F' +'%B %e' '2016-02-01')
Thus my scripts are revised as follows.
Shell script e.g.
#!/bin/bash
#
# for localised month name by %B
#
# export LC_ALL=fr_FR.UTF-8
# export LC_ALL=de_DE.UTF-8
# etc
#
DIR=~/Desktop
find "$DIR" -type f -iname "$(printf '%s %d' $(date +'%B %e')).*" -print
AppleScript e.g.
set d to (choose folder)'s POSIX path
do shell script "DIR=" & d's quoted form & "; find \"${DIR%/}\" -type f -iname \"$(printf '%s %d' $(date +'%B %e')).*\" -print"
set rr to result's paragraphs
repeat with r in rr
set r's contents to r as POSIX file as alias
end repeat
return rr
All the best,
H