thank you about the response. Apple does a natural sort when listing
files, so there's no need for a padding (on a mac).
Actually thinking about it, you may never know how much padding you
will need beforehand, therefore padding needs to occur at the end of
the script.. However for most users padding will be a nice option.
I noticed some odd behaviour in the script:
./iphotoexport.py -k -a "a folder" ~/Pictures/iPhoto\ Library ~/
testiphotoexport
where "a folder" is a folder and not an album. The script will only
check, if there are pictures directly below "a folder".
However, when I request "an album below a folder" which actually
contains images, the script will even produce the parent folder "a
folder" at the destination (which is nice).
iPhoto:
a folder/an album/ ... pictures
iphotoexport:
request "a folder" -> nothing
request "an album" -> creates a folder/an album/ ... pictures
I suppose I expected the search to be recursive as it's the behaviour
of iPhoto to show contents of folders recursively, which I like.