Re: Opening contact in Address Book to edit
Re: Opening contact in Address Book to edit
- Subject: Re: Opening contact in Address Book to edit
- From: Sweth Chandramouli <email@hidden>
- Date: Sat, 8 Apr 2006 01:08:00 -0400
- Mail-followup-to: Applescript Users <email@hidden>
On Wednesday, 05 April 2006 at 05:28:49 EDT,
kai (<email@hidden>) wrote:
> You'll probably have to resort to GUI scripting for most of this,
> Sweth. The following might help to get you started.
That example was EXTREMELY helpful; thanks much. The larger task that
I'm trying to automate is that I often need to date/time stamp my notes
in the AB, and since I'm eventually going to be importing them into
another app that can store a list of notes rather than just a single
large note for each contact, I also have gotten in the habit of putting
a delimiter around each note so I can easily break the AB notes into
individual mini-notes for that other app. So I took kai's example, and
changed the "tell scroll area" block to:
tell scroll area -1 of splitter group 1
set value of scroll bar 1 to 1
set value of attribute "AXFocused" of ??
(first text field whose help is "Note") to true
key code 123
keystroke return & theDelimiter
set value of attribute "AXFocused" of ??
(first text field whose help is "Note") to true
key code 123
keystroke theDelimiter & short date string of (current date) & ": "
end tell
. That works fine--but it's very slow, taking about 30 seconds between
when I invoke the script and when the AB is ready for me to start
typing my note. I tried converting it to a script that would only
be run when the contact to which the note should be added was already
selected (e.g. took out the tests to make sure we've got a valid contact
and that we're in column view), but that didn't speed things up
noticeably. Is there anything else I should look at in terms of
speeding this up? (Ideally, I'd like to turn this into a plug-in that
I could use by right-clicking on "Notes" a la the plug-ins that let you
schedule an event for iCal when viewing an AB contact; I don't know if
that would offer up any opportunities for speeding things up, but thought
I'd throw that out there as well.)
-- Sweth.
--
Sweth Chandramouli
email@hidden - http://EthicalHomes.com/
Wish you could sell your home, but afraid that there's nothing you'd be able
to buy to replace it? Ask me about ways that you can afford to trade up
while still turning some of your current equity into cash in your pocket.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden