Fwd: Mail Print GUI
Fwd: Mail Print GUI
- Subject: Fwd: Mail Print GUI
- From: Kok Ooi Kong <email@hidden>
- Date: Wed, 30 Jul 2003 15:04:14 +0800
I think the problem was due to Mail open the selected mail when the
message stay selected for too long? Anyway, just put an end to the
Mail - then follow by the GUI part (in ... portion). GUI part works
fine. If you like to refine it, you may want to put a condition to see
if the message contains any attachment before running the second part
of the GUI script, since there is so much delay in that part.
For John's problem, probably the Script Editor is of different version?
Your version in fact didn't work for me too - error: variable status
not defined. I'm using AS 2.0 beta2 OS X.2.6. The script actually works
but if Mail is not stop early the result may be inconsistent, ie
sometimes it works, sometime it doesn't. So, cool down, man.
property myAcc : email account name
tell application "Mail"
activate
set lista to every message of mailbox "In" of myAcc whose the is read
is false
set aMessage to every item in lista
end tell
-- Select messages
if lista is not {} then
repeat with aMessage in lista
tell application "Mail"
set selected messages of message viewer 1 to {aMessage}
end tell
tell application "System Events"
....
end repeat
end if
>
> OK, but where the script is stopping is in the save attachments part,
>
> the select unread part, as well as the print part works fine..
>
>
>
>>
>
>> What's the point of posting a script you haven't tried?!
I don't see the point of your posting either - your syntax still do the
same thing as Marcus's script.
>
>> Your syntax does not work in my version of Mail. This does -- I've
>
>> tried it! -- BUT it will only work if the message viewer already
>
>> contains the messages you want to select, because, like many things
>
>> in
>
>> Mail's aete, it's broken.
>
>>
>
>>
>
>>
>
>> tell application "Mail"
>
>> activate
>
>> set ls to messages of mailbox "In" of account 1 whose read status
>
>> is
>
>> false
>
>> repeat with m in ls
>
>> delay 1
>
>> set selected messages in message viewer 1 to {m}
>
>> end repeat
>
>> end tell
>
>>
>
>>
>
>> 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.