• 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: Entourage : Returning info from multiple new messages
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Entourage : Returning info from multiple new messages


  • Subject: Re: Entourage : Returning info from multiple new messages
  • From: Jay Louvion <email@hidden>
  • Date: Wed, 17 Aug 2005 13:04:20 +0200

Title: Re: Entourage : Returning info from multiple new messages

I will try your suggestions about CCC, thanks very much.

My last request, and I think once that it is dealt with, I’ll be fine to fly solo, is the following:

When you make a rule applied to all incoming messages in Entourage that calls on an Applescript to do the kind of sorting I want to do, but that I already have two other rules that are appplied to all messages (SpamSieve, also calling an applescript) and one other that puts all messages to a certain email adress in a particular folder, how do I have to sort them out ?

The (nearly) final script runs like this now:

set ATD to AppleScript's text item delimiters
tell
application "Finder"
    set startupdisk to startup disk as string
   set image_source to startupdisk & "DVDimages:" as alias
   set save_target to startupdisk & "Users:caro:DVDoutput:" as alias
end
tell
tell
application "Microsoft Entourage"
    
    repeat with theMsg in (get current messages)
        set AppleScript's text item delimiters to " "
        set {theSubject, theContent} to theMsg's {subject, content}
        set eventcode to text item 1 of theSubject
       set ordernum to text item 2 of theSubject
       if items 1 thru 2 of ordernum is {"L", "G"} then
           set MailNr to text item 3 of theSubject as integer
           set AppleScript's text item delimiters to ""
            set shortnum to (items 3 thru end of ordernum) as string
           set theLink to {}
            if MailNr is 5 then
               set BeginLink5 to "http://www.apple.com/document?format=delivery&orderid="
                set BeginLink2 to "http://www.apple.com/document?format=invoice&orderid="
                set shortnum to items 3 thru end of ordernum as string
               set theLink5 to BeginLink5 & shortnum
               set theLink2 to BeginLink2 & shortnum
               set theDownload to (startupdisk & shortnum & ".pdf" as text)
                tell application "URL Access Scripting"
                    download theLink5 to file theDownload
               end tell
               tell application "Preview"
                    open alias theDownload --ed
               end tell
               tell application "Finder"
                    delete theDownload
                   --empty trash — I activated this because the open document prevented the operation
               end tell
               tell application "URL Access Scripting"
                    download theLink2 to file theDownload
               end tell
               tell application "Preview"
                    open alias theDownload --ed
               end tell
               tell application "Finder"
                    delete theDownload
                   --empty trash — I activated this because the open document prevented the operation
               end tell
           end if
       else
           if theSubject is "Saferpay Notification" then
               print theMsg
           end if
       end if
   end repeat
end
tell


Jay Louvion
Studio Casagrande
3, rue Müller-Brun
1208 Geneva

T+4122 840 3272
F+4122 840 3271

skypeme:
jaylouvion

www.studiocasagrande.com

 _______________________________________________
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: Entourage : Returning info from multiple new messages
      • From: Barry Wainwright <email@hidden>
References: 
 >Re: Entourage : Returning info from multiple new messages (From: Barry Wainwright <email@hidden>)

  • Prev by Date: Re: How about making System *Events* recordable?
  • Next by Date: Re: Entourage : Returning info from multiple new messages
  • Previous by thread: Re: Entourage : Returning info from multiple new messages
  • Next by thread: Re: Entourage : Returning info from multiple new messages
  • Index(es):
    • Date
    • Thread