Is it possible to query the current user's Apple ID from the command line? I want to create an AppleScript (run-only) app that will run only for a specific user (or at least for a user signed in with a specific AppleID), but I can't find any command (or third-party utility) that will do this.
Does something like this exist?