"Jan Hendrikx" wrote:

> Dear Scripters,
> 
> I would like to create a file in a container field that I can send as
> an attachment using SMTPit. Is there any way to get a text field into
> a container as a usable file without actually creating the file in
> the finder and then importing it?
> 
> Any help appreciated!
> 
> 
> Kind regards,
> 
> Jan Hendrikx


Jan,

A couple of (hopefully) useful things:

1. This is not a FileMaker list. I presume you are speaking about FM,
because you used the phrase "container field".  If you want to ask about
AppleScripting FileMaker, you should probably mention FM. ;)

2. There is absolutely no need to put "text" into a container field. Nor is
there any need to make "text" into a "file".


If you want to send text via a mailing tool, then just send the text.

While container fields _can_ contain files, they are designed for file data
-- images, PDF, 'word' documents, etc.

You are taking a very circular route to accomplish a very simple task.  If
you rely on the most appropriate features of FM and most appropriate
technology to accomplish your task, then I think you will have a more
pleasant, fruitful and efficient experience.

So...

The content of a text field can easily be gotten via AS from FM.

    set someText to cell "Some Text Field" of current layout

(Presuming you are 'at' the layout from which you need some data.)

-- 
Gary