Re: AppleScript and shell scripting
Re: AppleScript and shell scripting
- Subject: Re: AppleScript and shell scripting
- From: Michelle Steiner <email@hidden>
- Date: Sun, 29 Jul 2007 09:55:25 -0700
On Jul 29, 2007, at 9:37 AM, Doug McNutt wrote:
Because in Address Book 'email' is an element of 'person' , not a
property. You are trying to set a string to this element, which
won't work. The 'email' element has its own properties. Take a
look at this script that I think might be relevant:
Anyone who really thinks that AppleScript is any less arcane than
perl or tcsh should memorize that as a mantra.
How would you add an email address to a contact (AKA: person) in the
Address Book using perl or tcsh?
Here is how to do it with Applescript:
tell application "Address Book"
tell item 1 of (get the selection) to make new email with properties
{label:"home", value:"email@hidden"}
save addressbook
end tell
-- Michelle
--
Social Security Privatization: a solution in search of a problem.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden