MACSCRPT Archives

January 2007

MACSCRPT@LISTSERV.DARTMOUTH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
"Gary (Lists)" <[log in to unmask]>
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Fri, 26 Jan 2007 07:59:33 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (50 lines)
"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

ATOM RSS1 RSS2