in Education by
I was getting the users mail addresses from Libraray/Preferences/com.apple.mail.plist. They are not there any more in Lion :P Do I have to use scripting bridge? Any hints? Thanks JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
I would get them right out of Address Book. That should work regardless of what email app is being used. // Find 'me' card in address book. ABPerson* meCard = [[ABAddressBook sharedAddressBook] me]; if( meCard == nil ) { NSLog( @"Could not find me!" ); return; } // Get my email addresses. ABMultiValue* anEmailList = [meCard valueForProperty:kABEmailProperty]; if( anEmailList == nil ) { NSLog( @"I have no email!" ); return; } // Output them. for( NSUInteger index = 0; index < [anEmailList count]; index++ ) { NSString* aLabel = [anEmailList labelAtIndex:index]; NSString* aValue = [anEmailList valueAtIndex:index]; NSLog( @"%@: %@", aLabel, aValue ); }

Related questions

0 votes
    Amazon's EC2 service offers a variety of Linux and Windows OS choices, but I haven't found a service ... a monthly subscription. Select the correct answer from above options...
asked Feb 1, 2022 in Education by JackTerrance
0 votes
    Is there a keyboard shortcut to restore a minimised application window from the Dock? Almost all Apple Mac ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 25, 2022 in Education by JackTerrance
0 votes
    I'd like to be able to determine if a directory such as a '.app' is considered to be a package ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 23, 2022 in Education by JackTerrance
0 votes
    I'm trying to find the replacement for kicker.bundle that was found in /System/Library/SystemConfiguration ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 8, 2022 in Education by JackTerrance
0 votes
    I'm trying to find the replacement for kicker.bundle that was found in /System/Library/SystemConfiguration ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 6, 2022 in Education by JackTerrance
0 votes
    Find the odd man out: 1. Grasshopper, squirrel, elephant, lion 2. Nitrogen cycle, oxygen cycle, ... ,Science proposed by,electromagnetic theory engineering physics,Science nptel...
asked Nov 7, 2021 in Education by JackTerrance
+1 vote
    Microsoft uses industry standard _______________ dynamic routing protocol to exchange routes between your on-premises ... instances in Azure, and Microsoft public addresses....
asked Oct 20, 2020 in Technology by JackTerrance
0 votes
    Let us assume x (t) = A cos(ωt + φ), on taking the partial fractions for the response we get? (a) ... Questions for GATE EC Exam, Network Theory MCQ (Multiple Choice Questions)...
asked Oct 16, 2021 in Education by JackTerrance
0 votes
    On what basis of a variable, OS allocates memory and decides what can be stored in the reserved memory? (a) ... Out of R Programming Select the correct answer from above options...
asked Feb 13, 2022 in Education by JackTerrance
0 votes
    I tried to follow this tutorial. This is what I did in the console: pip3 install --user --upgrade awscli after ... 's the problem here? Select the correct answer from above options...
asked Jan 30, 2022 in Education by JackTerrance
0 votes
    I tried this: pip3 install --user --upgrade awscli pip3 --version I'm getting: pip 9.0.1 from /downloads/ ... not found. Please help. Select the correct answer from above options...
asked Jan 24, 2022 in Education by JackTerrance
0 votes
    io 3. When you switch on the computer, the Windows OS gets loaded onto the computer's memory, this process is ... (d) None of these Select the correct answer from above options...
asked Nov 30, 2021 in Education by JackTerrance
0 votes
    ________________ is an ethical hacking technique used for determining what operating system (OS) is running on a remote ... questions and answers pdf, mcq on Cyber Security pdf,...
asked Nov 4, 2021 in Education by JackTerrance
...