Habe ich mir auch schon angeschaut. Soweit ich das sehe, ist das nicht das, was ich suche.
Ich habe jetzt das da gefunden:
tell application "Filemaker Pro"
tell current record of database "Example neu"
set firstName to get data cell "Example::Vorname"
set lastName to get data cell "Example::Nachname"
end tell
end tell
tell application "Address Book"
set theCount to 0
try
set theCount to count (every person whose (first name is firstName) and (last name is lastName))
end try
if theCount is 0 then
display dialog "no person found" buttons {"none"} default button 1
else
set thePerson to id of (first person whose (first name is firstName) and (last name is lastName))
my ShowPerson(thePerson)
display dialog "Person found" buttons {"OK"} default button 1
end if
end tell
on ShowPerson(theID)
open location "addressbook://" & theID
end ShowPerson
Das funktioniert auch soweit. Nur, sobald ich dieses Skript aus FileMaker heraus aufrufen will, wird zwar die Person gefunden, aber nicht angezeigt. Ich denke, das hat mit den Variablen zu tun. Da ich aber kein Programmierer bin stehe ich wieder wie der Esel vor dem Berg.