Exporting Data as Text

Ask a Question related to FileMaker, Design and Development.

  1. #1

    Default Exporting Data as Text

    Hello:

    I've got a FM6 database of email aliases that I would like to export
    into a text file formatted in a ready-to-use way for my email server's
    email lists. Each line of the email list file would look like this example:

    "Doe, John Q." <jdoe@biteme.com>

    My database has the people's names and email addresses in it, but it
    seems that FM6 only allows for comma- or tab-delimited text file
    exports. I was looking into the scripting capabilities of FM6, and it
    is not apparent if FM6 can be made to write arbitrarily-formatted text
    files. Would I have to get the script to utilize another program for
    the actual file creation?

    I would greatly appreciate it if anyone could point me toward the proper
    way to make FM6 do what I want.

    --
    - Peter Schwenk
    - Systems Administrator
    - Mathematical Sciences
    - University of Delaware
    - Newark, DE 19716

    Peter Schwenk Guest

  2. Similar Questions and Discussions

    1. Exporting data from 3dsMax file
      This is a kind of side problem I have to deal with before I can contiune with what I have going in my previous thread. I've been reading around...
    2. Exporting Form Data into ACT - Can it be Done??
      I created a Form but don't have the information being sent to a datebase because we don't have one yet. We do have ACT 5.0 though and was wondering...
    3. Exporting to Excel with Unicode data
      Hi I'm trying to get the datagrid to excel export working. I've used the usual code examples that are floating around and it all works fine. The...
    4. exporting data as text file?
      I'm developing a projector which I want to be able to export a set of data as a text file which can then be loaded into a database. Any thoughts?
    5. Exporting text as text (not an image)
      Amit Shamis wrote: Yes. Select the slice you want to export as HTML text and change the slice type from Image to Text in the Property...
  3. #2

    Default Re: Exporting Data as Text

    Create a calculation field that concatenates all of your data as required
    (or use a text field and the Replace command with calculated results), then
    export only that field.

    "Peter Schwenk" <schwenk@math.udel.edu> wrote in message
    news:bmh3to$eff$1@news.udel.edu...
    > Hello:
    >
    > I've got a FM6 database of email aliases that I would like to export
    > into a text file formatted in a ready-to-use way for my email server's
    > email lists. Each line of the email list file would look like this
    example:
    >
    > "Doe, John Q." <jdoe@biteme.com>
    >
    > My database has the people's names and email addresses in it, but it
    > seems that FM6 only allows for comma- or tab-delimited text file
    > exports. I was looking into the scripting capabilities of FM6, and it
    > is not apparent if FM6 can be made to write arbitrarily-formatted text
    > files. Would I have to get the script to utilize another program for
    > the actual file creation?
    >
    > I would greatly appreciate it if anyone could point me toward the proper
    > way to make FM6 do what I want.
    >
    > --
    > - Peter Schwenk
    > - Systems Administrator
    > - Mathematical Sciences
    > - University of Delaware
    > - Newark, DE 19716
    >

    Glenn Schwandt Guest

  4. #3

    Default Re: Exporting Data as Text

    The calc can be a little tricky. You need to create a global text field
    (which I will call Double Quote) and place a single double quote character
    in it. The calc would look something like this:

    Double Quote & Name & Double Quote & " <" & Email Address & ">"

    OR

    Double Quote & First Name & " " & Surname & Double Quote & " <" & Email
    Address & ">"

    Then export the calc field. You can save the export to a script.

    Bridget Eley

    in article [email]voo6j4m3l8u301@corp.supernews.com[/email], Glenn Schwandt at
    [email]schwandtgat@aoldot.com[/email] wrote on 15/10/03 1:46 AM:
    > Create a calculation field that concatenates all of your data as required
    > (or use a text field and the Replace command with calculated results), then
    > export only that field.
    >
    > "Peter Schwenk" <schwenk@math.udel.edu> wrote in message
    > news:bmh3to$eff$1@news.udel.edu...
    >> Hello:
    >>
    >> I've got a FM6 database of email aliases that I would like to export
    >> into a text file formatted in a ready-to-use way for my email server's
    >> email lists. Each line of the email list file would look like this
    > example:
    >>
    >> "Doe, John Q." <jdoe@biteme.com>
    >>
    >> My database has the people's names and email addresses in it, but it
    >> seems that FM6 only allows for comma- or tab-delimited text file
    >> exports. I was looking into the scripting capabilities of FM6, and it
    >> is not apparent if FM6 can be made to write arbitrarily-formatted text
    >> files. Would I have to get the script to utilize another program for
    >> the actual file creation?
    >>
    >> I would greatly appreciate it if anyone could point me toward the proper
    >> way to make FM6 do what I want.
    >>
    >> --
    >> - Peter Schwenk
    >> - Systems Administrator
    >> - Mathematical Sciences
    >> - University of Delaware
    >> - Newark, DE 19716
    >>
    >
    >
    --

    (to email direct, replace "DOT" with "." and remove ".invalid")

    Bridget Eley Guest

  5. #4

    Default Re: Exporting Data as Text

    Thanks for the info. I found out that four (4) double quotes right next
    to each other produces one double quote of output:

    """" & Name & """" & " <" & Email Address & ">"


    Bridget Eley wrote:

    > The calc can be a little tricky. You need to create a global text field
    > (which I will call Double Quote) and place a single double quote character
    > in it. The calc would look something like this:
    >
    > Double Quote & Name & Double Quote & " <" & Email Address & ">"
    >
    > OR
    >
    > Double Quote & First Name & " " & Surname & Double Quote & " <" & Email
    > Address & ">"
    >
    > Then export the calc field. You can save the export to a script.
    >
    > Bridget Eley
    --
    - Peter Schwenk
    - Systems Administrator
    - Mathematical Sciences
    - University of Delaware
    - Newark, DE 19716

    Peter Schwenk Guest

  6. #5

    Default Re: Exporting Data as Text

    In article <bmh3to$eff$1@news.udel.edu>, Peter Schwenk
    <schwenk@math.udel.edu> wrote:
    >Hello:
    >
    >I've got a FM6 database of email aliases that I would like to export
    >into a text file formatted in a ready-to-use way for my email server's
    >email lists. Each line of the email list file would look like this example:
    >
    >"Doe, John Q." <jdoe@biteme.com>
    >
    >My database has the people's names and email addresses in it, but it
    >seems that FM6 only allows for comma- or tab-delimited text file
    >exports. I was looking into the scripting capabilities of FM6, and it
    >is not apparent if FM6 can be made to write arbitrarily-formatted text
    >files. Would I have to get the script to utilize another program for
    >the actual file creation?

    I do something similar. Assuming that you want your resulting text file
    to look exactly as above, with each entry separated by a carriage
    return/line feed or combo (depending on the email server's platform), then
    the trick is to make a calculated text field that assembles the data the
    way you want it. Then export just that one field as tab-delimited. With
    only one field, no delimiting is necessary, hence no tab characters. Use
    tab rather than comma, as a comma-delimited export will insert unwanted
    doublequotes.

    To duplicate the above, make your export field's calculation (three
    doublequotes will allow the insertion of a single doublequote):

    """ & NameField & """ & " <" & EmailField & ">"

    I could have made the whole central text string "" <", but I've had so
    much trouble getting the right number of quote characters into these kind
    of fields that I do them by themselves. Another workaround is to set up a
    global field, g_Quote, that contains one doublequote. Then your calc
    becomes:

    g_Quote & NameField & g_Quote & " <" & EmailField & ">"

    Steve Brown
    eyebrown@mindspring.com Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139