Re: Facespan script problem
Re: Facespan script problem
- Subject: Re: Facespan script problem
- From: Phi Sanders <email@hidden>
- Date: Fri, 26 Jan 2001 16:03:06 -0500
try this:
>
open windoid "Main Dialog"
tell windoid "Main Dialog"
>
set textbox "sender1" to mysender1
>
set textbox "subject1" to mysubject1
end tell
>
end run
OR
>
open windoid "Main Dialog"
>
set textbox "sender1" of windoid "Main Dialog" to mysender1
>
set textbox "subject1" of windoid "Main Dialog" to mysubject1
>
end run
One of those should work.
~Phi
--
Phi Sanders
"Phee, Phi, Pho, Phum..."
"And now, back to your regularly scheduled reality."
On 1/26/01, Eric Waters {email@hidden} said the following :
>
Applescripters-
>
>
I have a Facespan script that I'm wanting to display a floating
>
"windoid" dialog to notify users of new email with email sender and
>
email subject fields on the dialog - so the users can quickly view
>
who the new email is from and the subject before deciding to
>
interrupt current work to read the mail. They have the option (in the
>
Facespan dialog) to either read individual messages or ignore all
>
messages until later. However, I'm having trouble setting the
>
textboxes in the Facespan dialog to the sender and subject variables
>
I'm grabbing from Eudora. Here's the script:
>
>
on run
>
tell application "Eudora"
>
set mysender1 to sender of last message of mailbox "In"
>
set mysubject1 to subject of last message of mailbox "In"
>
end tell
>
>
open windoid "Main Dialog"
>
set textbox "sender1" to mysender1
>
set textbox "subject1" to mysubject1
>
end run
>
>
I'm currently getting the following error when running the script:
>
>
"Can't set textbox "sender1" to "--sender's name--"
>
>
Any ideas? Also, any input as to how I could account for more than
>
one message received since the last mail check and display both
>
senders and subject lines?
>
>
Thanks in advance.
>
--
>
WWWWWWWWWWWWWWWWW
>
>
Eric Waters
>
Systems Trainer - Office of Institutional Communications
>
Southwest Educational Development Laboratory - SEDL
>
Austin, Texas 78701
>
800-476-6861 ext. 329
>
>
web: http://www.sedl.org
>
_______________________________________________
>
applescript-users mailing list
>
email@hidden
>
http://www.lists.apple.com/mailman/listinfo/applescript-users