Hi everyone,
I’m looking for the way to get current user’s Apple ID. Some people say “you’d better to get myCard from Contacts.app”.
Someday, I found the way to get it with macOS 10.12. Some machine returns the information which I expected, some machine (clean installed) does not returns. I think there is some “condition” to get Apple ID. For example…the account which is used to talk with Message.app….
How do you think about this?
set icList to getICloudAccountIDandAliases() of me
on getICloudAccountIDandAliases() set aPath to (path to application support from user domain) as string set bPath to aPath & "iCloud:Accounts:" try tell application "Finder" tell folder bPath set aList to name of every file end tell end tell
return aList on error return {} end try end getICloudAccountIDandAliases |