Re: Apple mail : save attached file
Re: Apple mail : save attached file
- Subject: Re: Apple mail : save attached file
- From: John Delacour <email@hidden>
- Date: Tue, 22 Jul 2003 21:22:32 +0100
- Mac-eudora-version: 6.0a27
At 4:31 pm +0200 22/7/03, Reinforced Darkness wrote:
Hi,
nothing in the attachment objetc allows saving in a file or deleting
these attachments of msg.
I've tried GUIscripting, manage to go to the very last step but
cannot click the "save" button of thedialog box:
I don't think you'll succeed. All the buttons are called "button"
and all the properties are up the creek...
tell app "System Events" to tell process "Mail"
set frontmost to true
tell menu bar 1 to click menu item 9 of menu 3
tell window 1
first button whose enabled is true
--> button "Button" of window "In (9 unread)" of application
--> process "Mail" of application "System Events"}
end
end
You'd probably do better to get the source of the message and
extract the attachments with munpack or perl.
//
tell application "Mail"
activate
set the clipboard to "TELECHARGEMENT" as string
--- this will store the name of download folder
tell application "System Events"
get properties
get every process
tell process "Mail"
set fenetre to the name of window 1
get every menu bar
tell menu bar 1
get every menu
set lebon to menu item 7 of menu 3
--- this is the submenu (save attached files) of menu "File"
click lebon
end tell
delay 1
end tell
keystroke "v" with command down
keystroke return
tell window fenetre
click button "Enregistrer"
-- this should be the "Save" button
---- This last step won't work
end tell
end tell
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.
_______________________________________________
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.