• 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 Script to Cut and Paste Message Bodies?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Entourage Script to Cut and Paste Message Bodies?


  • Subject: Re: Entourage Script to Cut and Paste Message Bodies?
  • From: Ramona Rock <email@hidden>
  • Date: Mon, 17 Mar 2003 15:49:14 -0800

Hi Andrew, and thanks for responding! I know there's been a little delay
here, but I was hoping you wouldn't mind answering a couple of questions
about this. I tried to use your script exactly as is and first it threw up
the error, "File output.txt" not found. (I didn't know if I was supposed to
create it in advance, or is the script did that for me.) So, I created it,
then it gave me an error that it was a duplicate file. ??? (I know I don't
have any other files named that, I did a search just to make sure.) I
created the file using MS Word and did place it on my desktop, and made it a
text only file with extension, if that makes any difference at all here.

While I've only written a few simple scripts and am pretty new to this, I
don't understand the term "theFile" in this script. I didn't know if that's
intended to be a definition or part of a command, or if I'm supposed to
substitute in the name OF the file "output.txt?"

Appreciate any additional help! Thanks!
Ramona.

on 3/14/03 6:01 PM, email@hidden at email@hidden wrote:

> It's entirely possible, but...
>
> Steps 1 and 2 would be far easier done using a Rule that checks the subject
> line and runs the AppleScript if it matches.
>
> Something like this should be a good start:
>
> property outputFile : ":desktop:output.txt"
>
> tell application "Microsoft Entourage"
> set theFile to open for access outputFile with write permission
> repeat with aMessage in current messages
> set theBody to content of aMessage
> write theBody to theFile
> move aMessage to folder "archived messages"
> end repeat
> close access theFile
> end tell
>
>
>
> On 3/14/03 5:03 PM, "Ramona Rock" <email@hidden> wrote:
>
>> I'd like an Applescript to do the following, if possible:
>>
>> 1. Look at my inbox of Microsoft Entourage.
>> 2. Determine which email has a certain subject line. (info I get via a CGI
>> script on a website)
>> 3. Copy the body of those emails (but only those).
>> 4. Paste those message bodies into a text file on my desktop which I would
>> be able to title (and thus identify).
>> 5. Move the email message to another folder (this last part is optional,
>> but would be nice)
>>
>> Is this possible?
>>
>> Appreciate any responses! Ramona.
>> _______________________________________________
>> 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.
_______________________________________________
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.

References: 
 >Re: Entourage Script to Cut and Paste Message Bodies??? (From: Andrew Oliver <email@hidden>)

  • Prev by Date: Get ID of items Modified with 1 month
  • Next by Date: Re: Moving a message in OS X's Mail.app
  • Previous by thread: Re: Entourage Script to Cut and Paste Message Bodies???
  • Next by thread: AppleScript book?
  • Index(es):
    • Date
    • Thread