Re: IF Syntax
Re: IF Syntax
- Subject: Re: IF Syntax
- From: Dave Groover <email@hidden>
- Date: Fri, 4 Apr 2003 19:54:41 -0500
Good question. Here I was just trying to take the first step. I
hadn't realized that using connect was a duplicate effort with
Eudora and with Internet connect. Although I just set the PPP to
connect when needed and, although it did dial up the account when I
hit Command-M, (check mail) it errored as though it tried to check
before the connection was up and valid. So at least putting it in two
parts, I thought, would let me get the connection validated before
doing the second part.
Eventually what I am wanting to do is to set up an AppleScript that
checks Eudora's mailboxes and also any new mail for a flagged
keyword. So, if I want to sign people up to attend an event and I put
a form on my site that includes the keyword in the sent mail, I will
use the script to select the target mail, parse the data to some
variables, open my database, find the similar record checking the
incoming email against my records and if new, adding a new record. If
found, add the data as an incoming event that flags it as I how want
to deal with it in my DB.
Unfortunately Eudora seems forever resigned to the stone age for Mac
users as it refuses to enable AppleScript as a filter option. I last
wrote and complained about this over 6 months ago and the Eudora team
said emphatically no. It could have changed since then but I doubt it.
I was thinking that using AS to check mail would also take care of
how to filter messages with key words in the title.
But as I said in my last post, I have the Danny Goodman book so
eventually I will get there. Maybe, "VERY" eventually, but, someday.
;-)
Dave Groover
At 2:00 pm -0500 4/4/03, Dave Groover wrote:
continuing on my way... I was wondering what I am missing here. If a
message has a key indicator in it's subject line, here arbitrarily
decided to be the word "Alert", then I want to grab the subject, body
date and who it's from. Then set it to variables and port it for my
db to take in.
This dials and checks mail. But it errors on "can't get subject".
tell application "Internet Connect"
activate
connect
tell application "Eudora"
activate
connect
if subject is "alert" then
set {addressvar, subjectvar, datevar, bodyvar} to ,
{field "to", field "subject", field
"date", body}
After I figure this out I intend reading up on how to set this up as
a loop in case there is more than one message to flag.
What is the subject of application "Eudora" ?!
Why do you need to tell Internet Connect to connect and then tell
Eudora to connect?
What exactly are you trying to do?
JD
_______________________________________________
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.