Re: Scripting Entourage 2001
Re: Scripting Entourage 2001
- Subject: Re: Scripting Entourage 2001
- From: Stephen Swift <email@hidden>
- Date: Mon, 29 Apr 2002 01:20:52 -0400
- Secret-message: Congratulations! Send me a message with this header asthe subject to receive your prize!
Hi Paul-
Thanks for the info! I've run into another brick wall -- importing
messages. I noticed in your importing/exporting messages scripts, that you
comment that E'rage v.X can take an MBOX file from the finder via
AppleScript but in E2001 the user has to manually drag the file into E'rage.
I'm trying to figure out a completely automatic solution. But the best I
can come up with is:
tell application "Finder"
set blah to file "my message" of application "Finder"
end tell
tell application "Microsoft Entourage"
open blah
set blah_win to window index 1
set blah_msg to displayed message of blah_win
move blah_msg to folder "Inbox"
close blah_win
end tell
This is okay for one or two messages, but is really a pain when I try to
import 50 messages. I suppose until I upgrade I'll just have to be content
with dragging and then running your script. BTW, I love your import/export
scripts. I've tried to make similar scripts but yours are superior.
Another option I have is to create new messages. Instead of taking the
message and importing it, it reads the message and creates a duplicate of it
within Entourage. This works almost perfectly. Some of the headers are
lost because headers are [r/o] but I never look at headers anyway.
tell application "Microsoft Entourage"
set blah to make new incoming message with properties {subject:"yay",
content:"Hi-", time sent:date "Monday, April 29, 2002 12:00:00 AM", time
received:date "Monday, April 29, 2002 1:00:00 AM", storage:folder "Inbox",
sender:{address:"email@hidden", display name:"stephen"}, priority:high,
read status:untouched, replied to:false, forwarded:false, redirected:false,
flagged:false, account:POP account id 9, category:category id 6, to
recipients:"Family", CC recipients:"Sharon"}
end tell
That takes care of almost everything except reply-to. I'm on several
mailing lists, and I want to reply to the mailing list's address instead of
the sender's address. As of now I use a script to change the to field of my
replies, but it's not to elegant. Any ideas? Thanks.
>
On 4/28/02 5:05 PM, "Stephen Swift" <email@hidden> wrote:
>
>
> My question:
>
>
>
> I know E'rage v.X can be controlled in much more detain through AppleScript,
>
> but I was wondering if anyone had some method of cheating to be able to set
>
> a task's due date. Thanks.
>
>
Not in any decent manner. The only workarounds are
>
>
a) to set the Remind time
>
b) to use an AppleScript handler, or a scripting addition, to convert
>
the AppleScript verbose long date into a short date and add the short date
>
to the name of the task so when it pops up in the reminder you'll know when
>
it's really due. You're at least fortunate that scripting additions work in
>
OS 9 and Classic, so you can use Akua Sweets' 'the clock' (or a similar
>
command in Tanaka's osax) to do an easy conversion
>
c) make a parallel calendar event whose start time is the same as the
>
task's due date (but you can't script an event's reminder in E2001, so you
>
need both event and task to get both the reminder and the start time)
Thanks for the ideas.
>
>
If you want to work easily
>
with tasks and events in Applescript you'll have to upgrade to Entourage X,
>
whose applescripting for all the PIM parts of Entourage, plus IMAP accounts,
>
is very much improved over 2001. I wasn't idle during beta-testing, and nor
>
were the developers. There are really a lot of fixes.
>
>
I find Entourage and AppleScript very interesting. I'm definitely going to
have to upgrade to v.X sometime if I want to get more out of it. But for
now, E2001 is working.
[interesting E2001 & AS comments snipped.]
Stephen Swift
email@hidden
-----------------------------------------------
AppleScript Guru - The Mac Observer
http://www.macobserver.com/tips/applescript
_______________________________________________
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.