powermail-discuss Digest #2937 - Wednesday, August 10, 2011

  Re: AppleScript Sender Question
          by "PowerMail Engineering" <[email protected]>
  Re: AppleScript Sender Question
          by "Tom Dillon" <[email protected]>
  sender photo
          by "Enzo Brizio" <[email protected]>


----------------------------------------------------------------------

Subject: Re: AppleScript Sender Question
From: "PowerMail Engineering" <[email protected]>
Date: Wed, 10 Aug 2011 10:07:47 +0200

Tom Dillon wrote:

>When using the scrip below, the variable 'theSender' is always populated
>with what looks like Chinese characters rather than the sender's name
>and email address as I would have expected.

If you examine carefully PowerMail's dictionary in AppleScript Editor, you will 
see that the type of "sender" is not "text", but "address"; address itself has 
two text properties: "display name" and "email address". So the correct syntax 
is something like this:

set theFD to return & "----------" & return

tell application "PowerMail"
        set theMessages to current messages
        repeat with msg in theMessages
                set theSender to sender of msg
                set theTitle to subject of msg as text
                set theTime to time received of msg as text
                set theBody to content of msg as text
                
                set theText to (display name of theSender) & " " & (email 
address of theSender) & theFD & theTitle & theFD & theTime & theFD & theBody & 
theFD
                set the clipboard to theText
        end repeat
end tell


Jérôme - CTM Engineering


---------------------------------------------------------------------
   "After a month of Tiger, I'd gone back to CTM's excellent FoxTrot
    Personal Search for finding documents by content"
  Andrew Orlowski - www.reghardware.co.uk

         Download a demo version from www.foxtrot.ch
---------------------------------------------------------------------


----------------------------------------------------------------------

Subject: Re: AppleScript Sender Question
From: "Tom Dillon" <[email protected]>
Date: Wed, 10 Aug 2011 09:12:07 -0600

Jérôme wrote:

>If you examine carefully PowerMail's dictionary in AppleScript Editor,
>you will see that the type of "sender" is not "text", but "address";
>address itself has two text properties: "display name" and "email
>address". So the correct syntax is something like this:

Thanks for the info Jérôme. I've done so little AppleScript programming that I 
didn't really understand what to do with the properties.

--
   ------------------------------------------------------------------
   Tom Dillon                                           825 N. 500 W.
   DataCraft                                           Moab, UT 84532
   [email protected]                           720/209-6502
   ------------------------------------------------------------------
        Maybe we only think we have consciousness. --- Sunastar
   ------------------------------------------------------------------



----------------------------------------------------------------------

Subject: sender photo
From: "Enzo Brizio" <[email protected]>
Date: Wed, 10 Aug 2011 19:34:37 +0200

I'm a newbie with Powermail, that I've chosen after Eudora - Mail -
Thunderbird and some other client.
So, perhaps this question is already known. If so, I apologize.

Is not possible to add a digital photo to sender's address?

thankyou very much

--
Enzo Brizio - MD
Italy

----------------------------------------------------------------------
End of powermail-discuss Digest

Reply via email to