[futurebasic] Re: [FB] Apple address book

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : January 2006 : Group Archive : Group : All Groups

From: Ken Shmidheiser <kshmidheiser@...>
Date: Fri, 20 Jan 2006 19:04:06 -0500
Doug wrote:

>Using OS10.4.4
>
>Both examples return -1753


HHhhhmmmmmmm. Let me back way up.

Try this. See if it returns the first name in your AddressBook. It's 
frustrating when all works well here.

Ken


dim as str255 a
window 1,, (0,0)-(600,550)
text _monaco, 10
dim as long i
dim as str255    cmdStr
dim as container gC

cmdStr  = "osascript -e "
cmdStr += """tell app \""Address Book\"" "
cmdStr += "to get name of person 1""; exit 0"

open "unix", 2, cmdStr
do
line input #2, a
gC += a
until eof (2)
close  2

print gC

do
handleevents
until  0