I'm trying to write a very simple Applescript that will automatically press the return key on a dialog box. I tried this:
but get the error: Address Book got an error: Can’t get keystroke "*,
Can someone help a real neophyte with this? It's just the dialog box that comes up when a contact is imported into the Address Book and the button that is highlighted is either "Add" or "Import". Either way I just want to select it with Return!!
Thanks, Nancy
Code:
tell application "Address Book"
keystroke return
end tell
but get the error: Address Book got an error: Can’t get keystroke "*,
Can someone help a real neophyte with this? It's just the dialog box that comes up when a contact is imported into the Address Book and the button that is highlighted is either "Add" or "Import". Either way I just want to select it with Return!!
Thanks, Nancy