Re: Saving Attachements to a folder
Re: Saving Attachements to a folder
- Subject: Re: Saving Attachements to a folder
- From: Doug McNutt <email@hidden>
- Date: Mon, 20 Aug 2007 05:55:29 -0600
At 13:17 +0200 8/20/07, Ronald Hofmann wrote:
>Hi everybody,
>I´m trying to save the attachement of a mail (selection) to a folder.
>
>What I have so far:
>
>property thePath : "MacOSX:Users:ronny:Desktop:Target:"
>
>tell application "Mail"
> set x to selection --This returns a List of selected mails, in this case one mail.
>
> --What I would like to do
> save attachement of x to folder thePath -- This does not work.
>end tell
>
>Could somebody point me to the right direction?
attachement sounds entirely too French. Maybe, but in the US of A it's attachment.
If x is a list AppleScript is notorious for refusing to coerce a single element list to an item
save attachment of item 1 of x -- ?
-- perhaps but I'm now guessing and that's not a good idea in AppleScript. It might, for instance need to be attachment 1.
--
Applescript syntax is like English spelling:
Roughly, though not thoroughly, thought through.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden