Comment 1 for bug 772014

Revision history for this message
RaiMan (raimund-hocke) wrote : Re: X-1.0rc2: Mac: some app could not be closed in Traditional Chinese OS

committed for Mac OSX 10.6 German.

But I think, this is because of the blank in the CFBundleDisplayName, which is the real name of the bundle folder in the folder /Applications. Finder displays the localized names instead.

The problem exists in my German OS too.

The Finder filenames of some apps like Preview, System Preferences and others are in german, but cannot be used with Sikuli's App feature, you have to use the english name.

--- How to solve the blank problem - escape the blank with \
It is weird, but works:
App("Address\ Book").focus() # does not work
wait(2)
aBook = App("Address Book") # works
aBook.focus() # opens if not open
wait(2)
aBook.close() # does not work
App("Address\ Book").close() # works

So for apps with an intervening blank you have to use 2 different strings