I ´m trying to get the picture of the current user. All contact pictures of the Address Book are stored in ~/Library/Application Support/AddressBook/Images/. But I cannot find the picture of “Me”.
Anybody knows where I can find the picture of me?
In this case Adam, the System Events AppleScript dictionary offers a couple of clues - albeit not very obvious ones. One part, current user, is listed as an application property in the System Events Suite. The other, picture path, appears in the Accounts Suite as a user property.
You mean the picture? Try something like this:
tell application "System Events" to set p to current user's picture path
tell application "Preview" to open (POSIX file p as alias)