Word AppleScript Reference

A 526-page Reference for Word AppleScript has just been released:


This looks _very_ impressive indeed on first glance. 526 well-organized

This is going to make a HUGE difference to Word's being scripted. And
references are expected for the other apps too, according to the web site.
There are sample scripts there too.

Paul Berkowitz
MVP MacOffice
Entourage FAQ Page: <http://www.entourage.mvps.org/faq/index.html>
AppleScripts for Entourage: <http://macscripter.net/scriptbuilders/>

Please "Reply To Newsgroup" to reply to this message. Emails will be

PLEASE always state which version of Microsoft Office you are using -
**2004**, X  or 2001. It's often impossible to answer your questions

Paul Berkowitz
10/14/2004, 7:31:12 PM

2 replies

Paul Berkowitz <b************f_silcom.com> wrote:

> A 526-page Reference for Word AppleScript has just been released:
>     http://www.microsoft.com/mac/resources/resources.aspx?pid=asforoffice
> This looks _very_ impressive indeed on first glance. 526 well-organized
> pages!
> This is going to make a HUGE difference to Word's being scripted. And
> references are expected for the other apps too, according to the web site.
> There are sample scripts there too.

Thanks a lot for the information Paul. Very impressive resource


                    --- Mac:MS MVP (Francophone) ---
       http://www.mvps.org       -     http://mvp.support.microsoft.com
    MVPs are not MS employees    -    Les MVP ne travaillent pas pour MS
 Remove "NoSpam" to e-mail me    -      Retirez "NoSpam" pour m'�crire
10/14/2004, 11:18:59 PM
Paul Berkowitz <b************f_silcom.com> wrote:

> A 526-page Reference for Word AppleScript has just been released:
>     http://www.microsoft.com/mac/resources/resources.aspx?pid=asforoffice
> This looks _very_ impressive indeed on first glance. 526 well-organized
> pages!
> This is going to make a HUGE difference to Word's being scripted. And
> references are expected for the other apps too, according to the web site.
> There are sample scripts there too.

I'm not so impressed. It looks like this document is mostly just a
"translation" of the VBA online help, already found within Word itself.
And this "translation" is not very good - in many cases it fails to take
account of differences between VBA and AS, or between the VBA
implementation and the AS implementation of a thing.

The result is that there are some incoherencies that may trouble the
reader far more than assist.

For example, on pp. 18 and 19 a distinction is drawn between two

  Set Range2 to Range1  

which is said to cause range2 and range1 to refer to the same range
object, and:

  set Range2 to Range1

which is said to be shorthand for assigning the content of range1 to
range2, so that they may point to different locations or even different
documents. This is complete nonsense because the two expressions are the
very same expression!

But it is easy to see what has caused this mistake; in VBA, there *is* a
difference between "Set r2 = r1" and "r2 = r1", namely this very
difference. Clearly the author has copied a passage from a document
describing this difference in VBA, not realizing that there is no such
difference in AppleScript.

Similarly the document draws a distinction between "create range" and
"set range", saying that "set range" is used to "redefine an existing
text range object". But although this is true in VBA, it is not true in
the AS implementation; in fact, the two verbs do exactly the same thing
in AS, and the second has no effect upon the range it applies to (unlike
VBA, it is a function, not a method, i.e. it *returns* a *different*
range, rather than modifying *this* range).

In this case, as in many cases, we can actually see what the PDF was
translated from. It says:

> Use the set range command to redefine an existing text range
> object. The following example defines myRange to the first
> sentence in the document. The set range command redefines
> myRange so that it refers to the first sentence plus the
> next 10 characters.

The VBA online help shows us the source of this text:

> Use the SetRange method to redefine an existing Range
> object. The following example defines myRange to the current
> selection. The SetRange method redefines myRange so that it
> refers to current selection plus the next ten characters.

The incoherencies in the discussion here stem from the botched
trans**tation from VBA to AS.

Another good example of the problem is on p. 24, where we are told to do
a find using a text range's find object:

set content of find object of text object of active document to "blue"
set forward of find object of text object of active document to true
set myFind to execute find find object of text object of active document

The problem is that in AS, "execute find" does the wrong thing. In VBA,
myRange.Find.Execute changes myRange to the range of what was found. But
in AS it simply returns "true" (or "false") - the dictionary wrongly
claims that it returns a new range - and it does *not* change the target
range! Thus the above statement is utterly useless, and it would be
stupid to issue it, because there is no way to learn what was found. The
"translator" has been misled by VBA, and has not thought about how to
work with the AS implementation.

Even worse, in that particular example, the find will not even work
properly - it will not even return "true" or "false" correctly. The
correct way to do the find in that example is like this:

tell application "Microsoft Word"
  tell active document
    tell text object
      tell (get find object) -- this is crucial!
        set content to "blue"
        set forward to true
        execute find
      end tell
    end tell
  end tell
end tell

If you say "tell find object" instead of "tell (get find object)", the
result will not even reliably be true or false - in fact, the script may
not even run. I did not find this out from the PDF; I found it out by

This PDF is going to help few readers and will mostly mislead people. It
is clearly a copy of existing VBA documentation, done by someone who has
not understood the subtleties of the AS language or the AS
implementation's crucial differences from the VBA implementation.


matt neuburg, phd = m********its.com, http://www.tidbits.com/matt/
AppleScript: The Definitive Guide
Read TidBITS! It's free and smart. http://www.tidbits.com
10/15/2004, 1:12:58 PM

Applescript working with tasks
1 replies , 11/12/2008, 11:22:20 PM
Version: 2008 Operating System: Mac OS X 10.5 (Leopard) Processor: Intel Email Client: Exchange How can I refer to the currently selected task item in Applescript. I'm trying to write a script to create a new task which inherits the body, category, and project of the current task. There doesn't seem to be a currenttasks object and getselection doesn't seem to work.

Applescript: Forward message to another ISP
4 replies , 11/7/2003, 2:55:34 AM
OK Paul, here's my problem. I'm receiving spam through one account and need to forward it through another account. I have a working script but it sends the spam to the same ISP it came from which then errors unless I change the account manually. I can say: set newMsg to make new outgoing message at out box folder with properties {account:theAccount} and the new message goes to the desired ISP, but this doesn't work for a forwarded message. How do I tell the forwarded to send to a different account than it came from? --Gnarlie

1 replies , 8/10/2004, 8:30:45 AM
I'd like to create (find?) a script that will allow me to set up a Note in entrourage -- Jeremy jeremyatcommunityhypenrelationsdotcoetc

Applescripts for Motorola
1 replies , 12/30/2004, 6:25:41 AM
Does anyone perhaps know where I can get an AppleScript for a Motorola V620 and Mac OS X 10.3.7. I want to sync Entourage contacts and calendar with my phone Thanks... Robin

Robin Sofer
Open Text File with Excel via Applescript
1 replies , 8/23/2004, 11:08:35 PM
Are there any scripters in the group who can give me a simple script syntax for opening a generic comma delimited text document in Excel? I can easily do this with the File>Open menu in Excel, which brings up the Text Wizard and allows me to set the delimiter and the data formats. However I am failing at trying to accomplish this via Applescript using the "Open" and "openText" commands. I get an error message that suggests that the event is being sent to the document and not to the application: something like "document xxx doesn't understand the openText command." Thanks for any help. M.A.

Mark Aalyson
1 replies , 10/11/2008, 3:50:42 AM
Version: 2008 Operating System: Mac OS X 10.4 (Tiger) Processor: Intel Email Client: pop I need to send a recurring e-mail in Entourage every day with the same message - and heard that I can do it by running an applescript. I went through the Tools, Run Schedule, etc and got to the menu bar where I can select Run applescript, but I don't know what to do next. Does anyone know what the applescript should be?

0 replies , 8/14/2006, 3:49:51 PM
I've been trying to write an applescript to select a file in the finder and create a note or task with a link to this file I can't seem to get this to work anyone have any ideas?

Gilbert Beveridge
1 replies , 8/16/2009, 1:11:36 AM
Version: 2008 Operating System: Mac OS X 10.5 (Leopard) Processor: Intel I want to format the axis numbers to Bookman Old Style font size 18 using Applescript. I can do the titles (see below) but not the numbers on the axis. Everything else in my script works, but I also can't figure out how to set the weight of the axis line (I want it to be darker). Here is the first part of it: tell application "Microsoft Excel" activate chart tell active chart set chart type to xy scatter lines no markers tell its lines set weight to 7 end tell --'Add Titles and Format Chart and Axes set has title to true tell its chart title -- needs 'its !! set caption to "T" tell font object set name to "Bookman Old Style" set font size to 18 set bold to false end tell end tell set categoryAxis to get axis axis type category axis � which axis primary axis tell categoryAxis set has title to true set has major gridlines to true set has minor gridlines to true tell its axis title -- needs 'its' !! set caption to "X " tell font object set name to "Bookman Old Style" set font size to 18 set bold to false end tell end tell end tell any help would be wonderful...

Entourage Applescript
2 replies , 8/31/2004, 7:43:12 PM
We are using Spamassassin to tag SPAM. It puts the word prepends the word "SPAM:" to the subjust of suspect messages. In Entourage, we have a Rule setup to Move all incoming messages that start with the word "SPAM" to the Junk E-mail folder. I would like to find a way to have the word "SPAM" removed from the subject line and moved to the Inbox if the user clicks the "Not Junk" button. Clicking "Not Junk" move the message to the Inbox, but I would like to have the ability to remove the word "SPAM:" from the subject. At this point, the users have to click on Reply to edit/remove the word "SPAM:". I was hoping to find a way to modify the Entourage script or write an Applescript that can run as a Rule. Any help would be appreciated. ....hagrid

Applescript and Webquery or IQY file
1 replies , 9/15/2009, 6:51:13 PM
Version: 2008 Operating System: Mac OS X 10.6 (Snow Leopard) Processor: Intel I have been scouring the web for an answer to what I believe to be a simple question, and everything I find is VBA this and VBA that. I'm on an Apple, don't give me a VBA answer. Office 2008 doesn't use VBA. I currently have an excel file that I open with applescript, and right now it automatically refreshes the data from my webqueries. I need to have it wait to refresh until Applescript can get a start and end date from the user and set these to cells in the document that the query uses for it's parameters. Put simply, "How do I tell excel 2008 to refresh a webquery with Applescript?" So I can have all the work done in the correct order.

Any AppleScripters?
1 replies , 10/13/2005, 6:58:18 PM
Hi This should be really easy ... but I can't do it! I want to assign a hotkey so I can, via AppleScript, open a new document from an existing template (like the File > Project Gallery > My Templates > choose-and-click) Any ideas? -- Be Seeing You -- Mark

2 replies , 1/6/2009, 2:37:12 AM
Version: 2008 Operating System: Mac OS X 10.5 (Leopard) Processor: Intel Hi Eveveryone, I'm trying to create an Applescript that converts a txt file to a csv file. I've tried all sorts of solutions but so far none have worked. My latest try is as follows: set theFolder to choose folder with prompt "Choose the folder that contains your Excel files" tell application "Finder" to set theFiles to (files of theFolder) set fileCount to count theFiles repeat with i from 1 to fileCount set fName to text 1 thru -5 of ((name of item i of theFiles) as text) set tName to (theFolder as text) & fName & ".csv" tell application "Microsoft Excel" activate open text file filename (item i of theFiles) data type delimited origin MSDos with consecutive delimiter and space without tab save fName in tName as CSV Windows file format end tell end repeat Right now when I run the script nothing happens after I choose the folder. I have to use all the parameters after open text file because of the type of file I'm opening. Anyone's help would be greatly appreciated.

Set category with Applescript
1 replies , 9/15/2004, 11:52:36 PM
Is there a way to set a category or change the category of a message, task, or event by Applescript? I can set other properties easily, but categories seem more problematic.

Russ Harlan
AppleScript Page Setup and Paper Size
1 replies , 3/13/2010, 3:51:14 AM
Version: 2008 Operating System: Mac OS X 10.5 (Leopard) Processor: Intel Hello, <br><br>I have been beating my head into the wall to figure this one out. I have created the following AppleScript to set some items in the Page Setup: <br><br>tell application &quot;Microsoft Excel&quot; <br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tell page setup object of active sheet <br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;set page orientation to landscape <br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;set zoom to false <br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;set fit to pages wide to 1 <br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;set fit to pages tall to 9999 <br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;end tell <br> end tell <br><br>So that seems to work. The problem is I need to also be able to change the Paper Size using AppleScript as well. To change it in the GUI, I go to File... Page Setup... Options... {change the paper size to whatever you want} then click OK, OK <br><br>Is changing the Paper Size via AppleScript possible? <br><br>Instead of AppleScript, I have tried both Automator and QuicKeys... both seem to have trouble with the deeper Page Setup menu (Page Setup... click Options... to get to another Page Setup window). <br><br>It seems like Word 2008 has a way to change the paper size via AppleScript, but I'm starting to think it is impossible in Excel 2008. <br><br>Thanks for your help!

Applescript Syntax
3 replies , 10/14/2009, 7:54:32 PM
Version: 2008 Operating System: Mac OS X 10.5 (Leopard) Processor: Intel I'm very new to Applescript, so I am sure I am overlooking some simple rule of syntax, but I would appreciate a pointer. This compiles: tell application "Microsoft Excel" activate (* Work with active sheet *) set myRange to current region of active cell set myTotal to get offset myRange row offset 9 column offset 1 select myTotal end tell As does this: tell application "Microsoft Excel" activate (* Work with active sheet *) set myRange to current region of active cell set myTotal to get offset myRange row offset count of rows of myRange select myTotal end tell but when I try to add a column offset in the second example, the applescript compiler tells me about a syntax error at the word column - expected end of line, etc. but found class name e.g this won't compile tell application "Microsoft Excel" activate (* Work with active sheet *) set myRange to current region of active cell set myTotal to get offset myRange row offset count of rows of myRange column offset 1 select myTotal end tell Thanks

6 replies , 6/2/2005, 1:19:33 AM
I'm a beginner AppleScript programmer, and I'm looking for a way to write a script that will do something really simple, but for some reason, i can't get it to work. I need a command that opens the Labels tool in Word. I can't get the command that appears in the Word 2004 AppleScript Dictionary to work, but this might be because I'm not that good at reading the dictionaries, I'm really confused by them. If anyone either knows of another way of doing this rather than using that command, or can help me understand how I should use that command, I'd really appreciate it.

AppleScript to autoquit Entourage
2 replies , 12/29/2004, 10:42:46 PM
Hi! I created an AppleScript to quit Entourage every day (so that it's not downloading my pop mail while I'm at work). This script is called from Entourage on a Schedule (which works just fine) and the script itself worked great under Entourage X. Now that I'm using Entourage 2004, however, I get about a 30% success rate - but 70% of the time, the application hangs and I have to force quit. Here's the script: tell application "Microsoft Entourage" activate quit end tell Any one out there have any thoughts on what I'm doing incorrectly? If I remove the "activate" line, it also works... but I don't know if that's the problem. Thoughts? Thank you! ~Jeff -- Download the new AppleSpec Database (r.1/03) www.applespec.com

Applescripts for Rules
3 replies , 4/21/2009, 7:53:15 PM
When you create a rule in Entourage one option is to set an Applescript that will be run when the rule is activated. Let's say I have a rule triggered by the arrival of messages that meet particular criteria. How, in the Applescript that then runs, can I refer to the message that triggered the rule. I want to be able to access properties of that message. For example I would want to be able to do something like tell application "Microsoft Entourage" set theSubject to subject of theTriggeringMessage --- do the stuff I want to here .... end tell i.e. how do I refer to theTriggeringMessage? I searched the obvious places for documentation or examples on this but didn't find it anything. Thanks Ian

Applescript for message creation
5 replies , 12/7/2004, 2:52:01 AM
....not much of an applescripter, so I'm having trouble coming up with a functional applescript that will take the full internet headers from selected messages and use these full headers as the bodies of new messages, all with the same recipient and subject. Any thoughts? Thanks. -sy

A. Seth Young
Calling Applescript from Excel
1 replies , 5/21/2007, 5:08:56 PM
Now that M$ is mulling over a conversion from VBA to Applescript ... Is there a way to call Applescript from VBA? That would allow developers to make controls (such as dropdowns and buttons) whose triggers evoke Applescript instead of VBA. Something like a VBA editor for Applescript would be great. Is there a way in Applescript to associate a button in Excel with a Applescript event? Thanks.

Applescript question
0 replies , 10/14/2008, 8:52:29 PM
In article <5*************bcrossing.caR9absDaxw>, M************ceformac.com wrote: > As part of a script I've created, I'd like to insert two new rows into a > worksheet at variable location. Google 'excel applescript insert row', first hit: insert into range -- Tobias Weber

Simple AppleScript to open Unread View
4 replies , 9/6/2008, 6:31:53 PM
I had this very simple applescript: tell application "Microsoft Entourage" open custom view "Unread" activate end tell That no longer works; what's the 2008 equiv? Thanks, in advance. -= Lee

Lee Hinde
Delete imported duplicates Applescript
1 replies , 5/6/2004, 11:32:34 PM
Hello, I've recently imported thousands of messages from Mail into Entourage. I know there are duplicate messages between the two. Can I use the 'Delete imported duplicates Applescript' to remove the duplicate messages? I've tried using it, but to no avail as yet. Thanks, Ben

Ben Miller
Applescript for Excel 2008
0 replies , 10/7/2008, 8:52:07 PM
Hi, I am in need of a script that will hide row on a worksheet that have a value of zero in any cell in that row. Please help. Thanks ~R

AppleScript Inquiry
8 replies , 4/11/2008, 11:26:15 PM
We are using a 3rd-party software application on a system running Leopard v10.5.2. The following script is one of a number of scripts that are part of this application: <http://home.comcast.net/~tyh/OMScript.jpg> When this script is run, the application invokes Apple's "Mail" program and attaches images as an attachment, however we have a need to change the script to invoke "Entourage" instead of "Mail". Our request is fairly basic -we are seeking instructions on what line(s) to change (tell application "Mail" ??), especially the code which relates to setting the attachments via Entourage? Once we modify the script, is re-compiling required prior to placing it back into commission, and how do we do this? Thank you in advance to all who offer their advice and expertise.

Version: 2008 Operating System: Mac OS X 10.5 (Leopard) Processor: Intel I have a clipboard containing tab-delimitated text that I would like to paste into an Excel spreadsheet. Excel use the data to perform calculations. I would then like to copy the multi-cell range of results into the clipboard. How would I do this using AppleScript?

Anyone up for some Applescript?
0 replies , 2/7/2006, 9:42:47 PM
I'm looking to have some custom applescript written and I'm not really sure if this is something people just do for free for the heck of it or if I can commision someone or what... I use Quicksilver in combo with Entourage to take care of a ton of my task input, etc, in a system somewhat GTD based. Right now I use a small script by Paul Welty that's incredibly useful that will take whatever text I input into Quicksilver and make a new task with that text as the subject. So anytime I think of something I need to do I can add it as a task to Entourage without having to leave the program I'm working in. Really handy. What I'd like to do now is be able to quickly capture little bits of things that aren't really tasks but need to be contained on lists, like "groceries," or "great presents for my girlfriend." Right now I just keep these in text files and use Quicksilver's handy "append to..." command to take my text input and add it to the correct text file. I'd like to be able to input text in Quicksilver and have it append that text to the end of a note in Entourage. I don't care if I have to choose the note name from a dialogue box or if I have to remember the name correctly and type it in. This way I could keep lists of things like "Books to read" or "Movies to watch" in my notes area and do the following: 1) Hear a great book recommendation and say, "Hey, I want to remember to read that!" 2) No matter what I'm doing on my computer, pull up Quicksilver, type in the name of the book (and maybe the author) 3) run a script from quicksilver that takes the text I just put in and adds it to the end of my "Books to read" note in Entourage. 4) Take a look at this list next time I'm headed to the library. I'm not sure if I'm asking for the moon here or if this idea is in the realm of probability. I'd try and script it myself but I've never written an applescript before in my life and I really have no idea where to start, especially when it comes to scripting objects and the like in Entourage. I'm sure someone out there does this for fun, right? :-D Thanks.

Questions on AppleScripts for Entourage
2 replies , 8/8/2004, 8:10:09 PM
Two quick questions for anyone who may know: 1. Is it possible to write a script, or has one already been written, that would allow Entourage to thread by MessageID (I believe OE uses MessageID for threading)? 2. How about one that places my signature directly beneath my reply instead of at the bottom of the message body? Thank you in advance to anyone responding. Larry-

Larry A. Byram, Sr.
AppleScript warning
0 replies , 1/30/2008, 3:26:05 PM
Hi, scripts written for older versions (especially X) may not work unchanged with 2008. I recommend using Script Editor to save all of your scripts as plain text files before even installing Office 2008! Apparently even if older versions are still on your hard drive 2008 takes precedence in such a way that Script Editor is no longer able to decompile script files using old terminology into readable code. -- Tobias Weber

Tobias Weber
Searching for an AppleScript
1 replies , 6/25/2005, 4:03:19 PM
Using latest version of Entourage in Tiger 10.4.1, I had an AppleScript, which has somehow become corrupted, that I ran to move incoming email, received by me once a day, in Digest form, from the Mac-L List, OS_X List, etc., in text format, to a desktop folder where I then opened them using an application called Digest Viewer. I haven't a clue about how to repair this script and it's been so long since I have been using it that I forgot where I got it. I checked all the usual sites and could find no such AppleScript there. A. Anyone know where I could find such a script or B. Can some kind soul help me edit this script to get it to work??? property digestFolder : "" set digestFolder to ((path to desktop) as string) & "Digest Viewer alias:" tell application "Microsoft Entourage" -- set currentMessages to the current messages -- repeat with theMsg in the currentMessages -- my ProcessMsg(theMsg) -- end repeat -- end tell -- on ProcessMsg(theMsg) -- tell application "Microsoft Entourage" -- set s to subject of theMsg if (s contains "digest") and (s does not start with "re") then save theMsg in digestFolder as "TEXT" set read status of theMsg to read move theMsg to folder "Deleted Items" end if end tell -- end ProcessMsg -- P.s. If I now run this script on incoming Digests of the above-noted lists, they are placed on the desktop but not in the folder Digest Viewer which is on the desktop. So it _almost_ works, but not quite. Many thanks. Bob

R. Gerard
Applescript and Rules
2 replies , 4/15/2005, 3:05:27 PM
Hello, I am running os10.3.8 and entourage x. I have a few email accounts that are checked for new messages on a schedule (every 5 minutes). I created a rule that uses an applescript to speak the name of the account that any new mail arrives in. for example, if there is a new message (using pop server, not imap) on the server after the check mail script is run for account A, the rule is applied, the applescript is run, and the comnputer says "account A". The problem I am running into is in the situation when there is more than one new message for an account, the computer says "account A" "account A".... In the morning when I first check the email, there may be 20 messages and it just repeats and repeats. I only want the computer to say the account name once if there is new mail. If there a way that I can apply a rule to only the first message of each account? Perhaps I could create an applescript that checks the mail and tells me the number of new messages on each account? Any advice is appreciated. G.Miller

G. Miller
Applescript Consulting
2 replies , 4/27/2005, 5:34:02 PM
Hi list, Would anyone know of a person or service who can create a script for a specific purpose. I have a few mail sorting and merging functions I would like to accomplish with e-mail received through Entourage but don�t think I have the level of expertise to achieve what I need to do. Many thanks for any suggestions, Warmest regards, Kevin

Kevin O'Hanlon
Problem Using Applescript to Read Email Attachment
11 replies , 2/7/2008, 6:21:12 AM
I'm trying to use Applescript to access email attachments in Entourage 2004. I can get the Attachment object with no problem. However, when I attempt to get the "file" property of the "attachment" object, like so set theFile to file of theAttachment I get the following error: Microsoft Entourage got an error: Can=E2=80=99t get file of attachment = 1 of incoming message id 50670. I can't figure out what it's complaining about or trying to tell me. According to the Entourage Dictionary, "file" is a property of "attachment": attachment=E2=80=82n : every attachment elements contained by messages, incoming messages, outgoing messages, draft windows, draft news windows. properties name (text, r/o) : the name of the attachment file type (type, r/o) : the type of file file creator (type, r/o) : the creator of file encoding (no encoding/7bit encoding/8bit encoding/binhex/base64/ uuencode/AppleSingle/AppleDouble/quoted printable/ unknown encoding, r/o) : the MIME encoding of the data file (alias, r/o) : alias to the associated file (if there is one) content (text, r/o) : the encoded content (if it has been encoded) properties (record) : property that allows setting a list of properties Am I doing this wrong? Ultimately, I want to open the attachment file, modify it, and write the modified file back, effectively replacing the attachment. Thanks in advance for any insight you can provide!