G’day guys,
I’m trying to figure out how to send an SMS message using applescript, address book and a bluetooth enabled mobile phone.
I’ve been attempting to use UIElementInspector ( http://www.apple.com/applescript/uiscripting/index.html ) to determine the hierarchy of what is going on, but all references to similar examples are referencing actual menu items.
The element i’m targeting is the “mobile” menu of a contact (must have bluetooth enabled), and not an actual menu item (more like a context menu (actionContext)).
Can anyone point me in a direction that would help me target the selection of the mobile element of a particular contact?
===============================
tell application “Address Book”
activate
end tell
tell application “System Events”
tell process “Address Book”
tell menu “mobile”
–tell menu “actionContext”
--click menu item "SMS Message"
--end tell
end tell
end tell
end tell
===============================
TIA
enjoi
mark