• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Get Apple ID from AppleScript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Get Apple ID from AppleScript


  • Subject: Re: Get Apple ID from AppleScript
  • From: Takaaki Naganoya <email@hidden>
  • Date: Tue, 24 Jan 2017 20:53:07 +0900

Thanks Paul,

Your information is very useful. I’ll write it in a memo on my mind.

--
Takaaki Naganoya
email@hidden
http://piyocast.com/as/

2017/01/24 20:20、Paul Fidler <email@hidden>のメール:

Whilst not foolproof, there are various places returned in terminal with:

dscl . read "/Users/theusernameofthecurrentuser”

Including:

dsAttrTypeNative:LinkedIdentity:

and

RecordName

Again, proceed with caution, as Shane mentions, but if it’s essential for you, it’s in there


On 24 Jan 2017, at 09:06, Takaaki Naganoya <email@hidden> wrote:

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?

<AppleScript>
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
</AppleScript>
--
Takaaki Naganoya
email@hidden
http://piyocast.com/as/


Do not post admin requests to the list. They will be ignored. AppleScript-Users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: Archives: http://lists.apple.com/archives/applescript-users This email sent to email@hidden
References: 
 >Get Apple ID from AppleScript (From: Takaaki Naganoya <email@hidden>)
 >Re: Get Apple ID from AppleScript (From: Paul Fidler <email@hidden>)

  • Prev by Date: Re: Get Apple ID from AppleScript
  • Next by Date: Re: Script Editor in Sierra – Auto-Opens Open Dialog?
  • Previous by thread: Re: Get Apple ID from AppleScript
  • Next by thread: I broke AppleScript
  • Index(es):
    • Date
    • Thread