apple-contacts
4
总安装量
4
周安装量
#54431
全站排名
安装命令
npx skills add https://github.com/sundial-org/awesome-openclaw-skills --skill apple-contacts
Agent 安装分布
codex
4
openclaw
3
gemini-cli
3
github-copilot
3
kimi-cli
3
cursor
3
Skill 文档
Apple Contacts
Query Contacts.app via AppleScript.
Quick Lookups
# By phone (name only)
osascript -e 'tell application "Contacts" to get name of every person whose value of phones contains "+1XXXXXXXXXX"'
# By name
osascript -e 'tell application "Contacts" to get name of every person whose name contains "John"'
# List all
osascript -e 'tell application "Contacts" to get name of every person'
Full Contact Info
â ï¸ Don’t use first person whose â buggy. Use this pattern:
# By phone
osascript -e 'tell application "Contacts"
set matches to every person whose value of phones contains "+1XXXXXXXXXX"
if length of matches > 0 then
set p to item 1 of matches
return {name of p, value of phones of p, value of emails of p}
end if
end tell'
# By name
osascript -e 'tell application "Contacts"
set matches to every person whose name contains "John"
if length of matches > 0 then
set p to item 1 of matches
return {name of p, value of phones of p, value of emails of p}
end if
end tell'
Phone Lookup
â ï¸ Exact string match required â must match stored format exactly.
| Stored | Search | Works? |
|---|---|---|
+1XXXXXXXXXX |
+1XXXXXXXXXX |
â |
+1XXXXXXXXXX |
XXXXXXXXXX |
â |
Try with +1 prefix first. If fails, search by name instead.
Name Search
- Case-insensitive
- Partial match with
contains - Exact match: use
isinstead ofcontains
Output
Returns comma-separated: name, phone1, [phone2...], email1, [email2...]
No match = empty output (not an error).