OSX - Reading adresscardfiles doesnt work
R. Hillen
mail at richard-hillen.de
Tue Nov 27 15:46:26 EST 2007
Hello list,
On Mac OS X, RR 2.8.1 I want to read the data in the adresscardfiles;
so I tried:
----
on mouseup
--set the folder with addresscards
put "Users/MyUserName/Library/Caches/com.apple.AddressBook/
MetaData/" into AdressFolder
set the defaultfolder to AdressFolder
--List of cards
put files() into CardList
filter CardList with "*AB*"
--read first card
put line 1 of CardList into CardFileName
put AdressFolder & CardFileName into CardFilePath
if there is a file CardFilePath then
answer "ok"
else
answer "card not found!"
end if
end mouseup
-----
The Answer is always "Card not found!"
I suspect, that the cause is the slash in the name of the
adressfiles, so for instance:
"0B4A452B-0669-483C-B85E-4DB56F4CA2EC/ABPerson.abcdp"
If I do
put url("file:"&CardFilePath) into CardData
it is empty.
Any Help?
Thank You!
Richard.
More information about the use-livecode
mailing list