• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Mail and Attachments
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mail and Attachments


  • Subject: Re: Mail and Attachments
  • From: Martin Orpen <email@hidden>
  • Date: Thu, 25 Aug 2005 00:10:34 +0100

on 24/8/05 12:12, Neil Faiman at email@hidden wrote:

> Here's the answer I posted when this came up three weeks ago. As Dave says,
> it's ugly; but it does work. Sometimes you use what you've got (and other
> times you get something else that works better). With some specialization,
> this meets my needs.

Boy am I glad that I don't rely on Mail to work with attachments - Entourage
is a whole lot easier for this sort of thing.

Here's an alternative method:

activate application "Mail"
tell application "System Events"
    tell process "Mail"
        perform action "AXPress" of menu item "Save AttachmentsŠ" of menu 1
of menu bar item "File" of menu bar 1
        set myFlag to false
        repeat until myFlag is true
            if exists sheet 1 of window 1 then
                perform action "AXPress" of button "Save" of sheet 1 of
window 1
                set myFlag to true
            else
                delay 1
            end if
        end repeat
    end tell
end tell


Might be of use to those who don't mind resorting to the UI.

I find it depressing that you can force Mail to do what you want by calling
obj-c methods using F-Script (saveAllAttachments:)- but the AS dictionary is
sadly lacking. I wouldn't be at all surprised if Automator could do this :(

We all know where to post bug reports now, but where is the official channel
for *feature requests*?

--
Martin Orpen


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Mail and Attachments
      • From: Michelle Steiner <email@hidden>
    • Re: Mail and Attachments
      • From: Neil Faiman <email@hidden>
References: 
 >Fwd: Mail and Attachments (From: Neil Faiman <email@hidden>)

  • Prev by Date: Re: run script from browser
  • Next by Date: Re: Mail and Attachments
  • Previous by thread: Fwd: Mail and Attachments
  • Next by thread: Re: Mail and Attachments
  • Index(es):
    • Date
    • Thread