Re: Scripting Jag's Address Book
Re: Scripting Jag's Address Book
- Subject: Re: Scripting Jag's Address Book
- From: Norman Cohen <email@hidden>
- Date: Sun, 1 Sep 2002 16:13:03 -0600
Responses below:
On Sunday, September 1, 2002, at 03:27 PM, Paul Berkowitz wrote:
Ah yes, the clipboard. Good idea.
Why all the 'as text' and 'as string' stuff? (I haven't tried it yet -
does
Unicode not coerce automatically to the styled text that the clipboard
uses?
I would have thought it did...) And why not paste what's in the
clipboard to
wherever you want it? Maybe instead of putting a carriage return
between
each label and its value, you might want just ": " ?
It doesn't need the as text and as string, except for the comparison to
make sure that the street field contains text. I had it in there as I
was trying to find a way to coerce the text to unformatted text. I just
forgot to strip all that stuff out. The person, on another list, asking
for this wanted to be able to copy the formatted address and name
easily without having to do multiple copies. You certainly can have the
contents pasted wherever you want, but I didn't know where the person
asking the question wanted to paste the stuff.
I think you also have each address wiping out the previous one (not to
mention each duplicated person wiping out its duplicate). Is that
really
what you want to happen if there's both a home and a work address?
No, it doesn't wipe out the address; it actually adds it to the end of
the text string "theAddress." The script loops through each address for
each person matching the contents of the clipboard - that way if you
have both a work and home address, you can have both pasted. The user
can modify the script to strip this functionality or add a conditional
to select by label (home, work, other) of the address. I was just
trying to get a general case to handle multiple street addresses in a
given record.
Norman Cohen
email@hidden
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.