Re: scripting entourage groups
Re: scripting entourage groups
- Subject: Re: scripting entourage groups
- From: Paul Berkowitz <email@hidden>
- Date: Tue, 01 Apr 2003 12:00:25 -0800
On 4/1/03 10:23 AM, "jason perkins" <email@hidden> wrote:
>
Here's a bit of AppleScript that I'm trying to get working:
>
>
set group_name to "blah"
>
set currentEmailAddress to "email@hidden"
>
>
tell application "Microsoft Entourage"
>
>
set group_entries to (address of content of every group entry of
>
group_name)
>
>
if (group_entries of "danceContest") does not contain currentEmailAddress
>
then
>
display dialog "it's not here."
>
else
>
display dialog "it's here."
>
end if
>
end tell
>
>
Both the group 'blah' and user 'email@hidden' exist (for development
>
purposes). However, when I run the script I'm getting the error, 'Can't get
>
every group entry of "blah"'. I'm attempting to check if that address is
>
already a member of group 'blah' - anyone have any suggestions as to how to
>
get this working?
group_name is just a string. (Maybe you should have called it 'theName' or
'_name' so as to to get confused.) A string can't have have any group
entries. Try
set group_entries to (address of content of every group entry of
group group_name)
'group group_name' will work.*
Again, you'd probably be better off naming that variable '_addresses' or
something like that. You might need a variable for the actual group entries,
rather than your addrseses. It's easy to get them confused.
--
Paul Berkowitz
_______________________________________________
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.