Re: Mail Scripting GUI
Re: Mail Scripting GUI
- Subject: Re: Mail Scripting GUI
- From: email@hidden
- Date: Tue, 29 Jul 2003 16:22:51 +0800
I have ammended the script but has not tried it. Check if it works. I
would like to know too. ;)
Message: 12
Date: Mon, 28 Jul 2003 17:43:12 -0300
Subject: Mail Scripting GUI
From: Marcus Rodrigues <email@hidden>
To: AppleScript Users Users <email@hidden>
Here's the script:
tell application "Mail"
activate
set lista to every message of mailbox "In" of account "Marcus" whose
the is read is false
set aMessage to every item in lista
-- Select messages
repeat with aMessage in lista
set selected messages of message viewer 1 to {aMessage}
tell application "System Events"
tell process "Mail"
set frontmost to true
set frWdw to the name of window 1 as string
click menu item "Print..." of menu "File" of menu bar 1
-- or keystroke p with command down
delay 5
keystroke return
delay 5
click menu item "Save Attachments..." of menu "File" of menu bar 1
delay 1
tell window frWdw
tell sheet 1
tell group 1
tell pop up button 1
click
delay 1
click menu item "Desktop" of menu 1
delay 1
end tell
end tell
click button "Save"
delay 20
end tell
end tell
end tell
end tell
end repeat
end tell
_______________________________________________
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.