RE: stuck using Outlook 2001
RE: stuck using Outlook 2001
- Subject: RE: stuck using Outlook 2001
- From: Dennis Cox <email@hidden>
- Date: Tue, 16 Dec 2003 14:58:45 -0600
Outlook doesn't use a property list like other, better AppleScriptable apps,
you just list the parts by name with the string that will appear in the
respective field, no commas, no brackets, no colons. And I can't seem to get
it to work without "without Display" at the end.
CreateMail Subject subjectstring Body bodystring Recipients recipientstring
without Display
Dennis Cox
>
----------
>
From: David DuBois
>
Reply To: David DuBois
>
Sent: Tuesday, December 16, 2003 11:25 AM
>
To: email@hidden
>
Subject: stuck using Outlook 2001
>
>
I am trying to write a simple script to automate some email. Although
>
Outlook 2001 has very limited scripting support, it should do what I would
>
like it to do. What I have (and doesn't work) is:
>
>
tell application "Microsoft Outlook"
>
set mySubject to "Test Message" as string
>
set myBody to "Some text goes here: " as string
>
CreateMail {|recipients|:"email@hidden",
>
|subject|:mySubject, |body|:myBody}
>
end tell
>
>
It will create a new message, but doesn't put in the recipents or subject
>
or body of the message.
>
>
Can anyone show me what I did wrong? Also, I would like to add a couple of
>
hard returns in my body type after the "Some text goes here:"
>
>
Thanks,
>
David
>
_______________________________________________
>
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.
_______________________________________________
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.