Export thousands of entries to separate files

I don't know scripting. But I would sure like to find a script to do this little thing for me!
Some background is necessary:
Years ago, I was a dedicated HyperCard user. (If you know what I mean then you know my pain). I had a rolodex phone book with thousands of entries.  As OSX came along, I ran HyperCard in classic. Now that I'm on an Intel Mac, classic is no longer supported. My clever solution was to export my stack entries to text and bring them into InDesign.
I'm limping along pretty well. Search in InD is very fast. And I've formatted the text using InD search and replace functions, I've made clear separations between entries. Each entry is one Paragraph, and between each entry is a spacer paragraph which carries a particular paragraph style called "Card Spacer". See the screenshot below.
My goal now is to move the data to a more useful platform  - Notebook, Yojimbo come to mind. I'm thinking that what I need to do is EXPORT each entry as a separate text file to my hard drive. Then I can import the entries into the new database and each entry will be separate.
I'm hoping that a kind member with the scripting skills to do this will help me out.
With appreciation,
Lance (NYC)
Member NYInD User Group
CS3 Intel Mac 10.5.7

Hey Peter!
Thanks so much! The script worked, it created over 4,000 text files in the folder where the file sat. It took about 5 seconds! I think this will solve my problem.
Before I close this thread (with a "Yes, answered" click), there's one minor hiccup I'd like to show you. The script is creating files both for my entry paragraphs and also for the spacer paragraphs. So I get one spacer text file for each "record" file.
I thought it would be easy to simply delete all the odd or all the even numbered files, but for some reason, the odd/eveness of the record files is not the same throughout the 4000 files. Probably there is an errant extra Hard Return character occasionally, causing the alternation of odd/even to switch.
Can the script be modified to skip the card spacers? Can you test for the paragraph style and skip paragraphs that are styled with "Card Spacer"? Of course, I can insert any other character into the spacer paragraphs if you'd rather filter for something else.
I don't know if, or how, I would get rid of the extra records if I import them into the new program.
Peter, this is not the first time I've used one of your scripts. Looking in my scripts folder, I saw another with your name: KahrelBatchExport.js. Thanks again for your help.
Check out this screen shot.

Similar Messages

  • "Export audio of selected range markers to separate files" icon is grayed out in Markers window. Tracks show start times but no end times, yet duration is calculated.

    I have one big wav file of segued tracks as a mixdown and inserted CD markers where I want marked tracks. "Export audio of selected range markers to separate files" icon is grayed out in Markers window. Tracks show start times but no end times, yet duration is calculated. Why can't I export these marked portions as separate files?

    the markers durations need to be configured, there is an easy way to do this using your existing markers.  click the start time of marker 2, this should change to edit mode to type in a new number, just copy the numbers cmd/ctrl+c. then click the end time of marker 1 and paste, cmd/ctrl+v.  now repeat for the rest of the markers, and on the last one enter a value for the end time or click and drag on the duration to manually extend it. once all the markers have a duration, the button should be active to export.

  • Aperture to export photos either TIFF or JPEG files, highlight and shadow transition has obvious faults, this problem solved!?

    Aperture to export photos either TIFF or JPEG files, highlight and shadow transition has obvious faults, this problem solved!?

    What problem?
    You will have to be _a lot_ more specific if you'd like responsible feedback.
    I export thousands of TIFF and JPG files a week with no obvious faults.
    (Sent from my magic glass.) 

  • How do I export detached audio files as separate files, for Pro Tools processing?

    My project is a live band performance. I have every song as a separate Event with associated audio. I have detachd all the audio from all the video Events. I now want to Export the audio files to Pro Tools for editing, then Import the edited audio back into FCP X and snap the edited audio to the associated video Events.
    My problem is this: FCP X keeps exporting the audio as a single large WAV file, rather than as separate WAV files. In fact, the video events are separate, and so the audio associated with the video Events are separate.
    I first renamed the Role of every audio file as "Music", then did a Share --> Export Media of all "Music" audio Roles. After exporting, I found it was one large WAV file, rather than separate files of different sizes.
    As a 2nd try, I created Sub-Roles for each audio clip, and named each one with a distinct Sub-Role name. I then Exported all these Sub-Roles (yes, tedious). The result was that every exported WAV file was the same size, the same as the file size in my first try. The only audio that could be heard in each file was the audio in that particular song, but FCP X still created the very large file with silence in all the rest of the file. Since the file lengths don't match the original audio fil lengths, there will be a problem when I Import the edited files back into FCP X and want to Snap them into place.
    Question:
    How can I export the individual detached audio clips as separate files, the length of each file equaling the length of the original audio file in FCP X?
    Do I need to separate the detached audio into separate Layers visually in the Project Timeline, so they are not touching? Or does this matter?
    Help!!

    Michael Holmes1 wrote:
    I have to record all the color changes I make in one Project, so I can repeat them in the other 17 projects, etc.
    No.
    You need to explore Compound Clips. This workflow may or may not be of help.
    Select an Event with clips in it and press Option+G to make a (blank) compound clip.
    Select the Event Browser, create a new Event and call it 'Effects'.
    Drag the Compound Clip into this Event.
    Right-click the clip and select 'Open in Timeline'.
    Select the timeline and press Option+W. This will add a Gap Clip to the timeline.
    Select the gap clip and press Ctrl+D then type in the duration you want the clip to be.
    Now open a project and select and copy one of the clips with effects etc.
    Open the Compound Clip in the Timeline again, select the gap clip and press Option+Cmd+V to paste the effects into your Compound Clip.
    This clip is now saved in your Browser and will remain there for you to copy and then paste the effects into any clip in any project.
    It's a bit clunky, but it works - and once you learn about Compound Clips, you can work wonders with them. As an example, if you want to add more effects without overwriting the effects in the Compound Clip, simply make the Compound Clip into a Compound Clip (again) and add the effects. They will be added to the original effects.
    Andy.

  • How can I save multiple emails as separate files with 1 export?

    I need to save hundreds of emails as separate files.  If I select all of the emails, then export as PDF, it doesn't save with their Subject titles, just numbers.  If I try prints, save as pdf, it consolidates them all into 1 file.  If I try to save as txt files, it only saves the first message.  If I try dragging and dropping the emails into a folder, it won't let me (only one at a time).  Any help would be greatly appreciated.

    I believe there is a third party app that saves email(s) as pdf's:
    http://www.sperrysoftware.com/Outlook/save-as-pdf.asp?src=googleadwords&gclid=CM aBn9vzu7gCFTMRtAodtjIADg&utm_expid=330330-7.0tmU05zdRNG5j8Zt1v22Dw.0&utm_referre r=http%3A%2F%2Fwww.google.com%2Faclk%3Fsa%3Dl%26ai%3DCYx7OWF_pUbOzJ8GehQewmIBoqo uemQKK4YCxIZPC-aA8CAAQAVDZ7NvS_v____8BYPuh64LoCaAB3rW3_wPIAQGqBChP0BuhRoSOlnh9eX 58SwjbgTHsbaVreSndBi1MKrzUffPlI2monV7nuAYBgAeKykg%26sig%3DAOD64_3QUxRWH7oaxXl2vN SwQqLI_cFtyw%26ved%3D0CDMQ0Qw%26adurl%3Dhttp%3A%2F%2Fwww.SperrySoftware.com%2FOu tlook%2Fsave-as-pdf.asp%253Fsrc%253Dgoogleadwords%26rct%3Dj%26q%3Dsave%2520email s%2520to%2520df

  • Exporting multiple clips from one sequence as separate files.

    Hello fellow editors!
    I have about 100+ video files that I want to cut into shorter clips, edit a bit and then export in a Final Cut friendly format (currently they are AVCHD mts files) to send it to my friend, who is putting the whole movie together.
    I dont want to use Final Cut for this ( I cannot, I have a windows machine) and I was hoping to work with premier CC and media encoder CC.
    There is a way of putting all clips in one sequence and then nesting each one, then you can send them to Encoder CC and it will render them as separate files - thats is just not very productive, nesting clips one by one and it takes forever for Encoder to import sequences.         
    I was wondering if there is a better workflow? I heard that Final Cut has shortcuts to do this very easily, you just click on all those clips in sequence and "batch export" them, which puts them in some place as separate, already cut files.?
    Anything? I love premier, let my feelings be justified!)

    Kevin Monahan ...
    Lucid George is right ... select one trimmed clip, File->Export->Media, you can choose whether in-out or entire clip.
    Select MORE than one clip, you get a completely different export box ...
    These two selections were "exported" from that bin created by dragging the trimmed clips from the timeline to a new bin ... I don't know what else one is supposed to do. You can't even select multiples clips and batch sub-clipping, which would at least cut the steps down.
    Neil

  • Exporting Issue: One large frame sized project, needs to be split and exported in 3 separate files

    Hello Awesome people, help me out here Please!
    I have a 4480(W) 1260 (H) frame sized project which needs to be exported in 3 separate files, due to the large screen size at the venue.
    how to split one project into 3 so that I can get 2 x 1920 (W) and 1 x 640 (W), and height for all three would be 1260 (H)??

    Dear Evans,
    You might need to check the print preferences settings on the system. This is available from Administration -> System Initialization -> Print Preferences.
    Check this out for the documents that get printed as images and get stored in the Bitmaps folder. Check under the 'general' tab whether the check box for printing documents as images is ticked. If yes, untick this. Then check the settings under the 'Per Document' tab - you will need to change the settings per each document.
    I hope this helps.
    Regards,
    Davis M Onsakia

  • Save Multiple Artboards with web options & export to layers as separate files?

    2 questions --
    1. Is there a way to export all artboards as PNGs with the save for web options??
    2. Is there a way to export separate layers as separate files?
    Thanks
    Logan

    http://www.tbyrne.org/export-illustrator-layers-to-svg-files
    Export Illustrator Layers and/or Artboards as PNGs and PDFs | Matthew Ericson - ericson.net
    Layer Export

  • How do I use my trailer in my new iMovie ? They are separate files.

    In my previous version of iMovie running on my iMac I could easily create a trailer (a quick preview of the video) to run at the start of my new movie.  The trailer and the movie were all part of the same file.
    With my new Mac Pro running iMovie 10.0.3 I created a 1 minute trailer of a recent camping trip. I like te excitement the trailer creates. I also created a one hour video of the trip itself.
    These are two separate files in my Project library.  How do I get the trailer to run at the start of my hour long video?
    thank you

    Hello bruce.roberts99,
    You can export the trailer as a QuickTime file, then import it back into an event. This should allow you to add the trailer to the beginning of another project.
    iMovie (2013): Export a QuickTime file
    http://support.apple.com/kb/PH14734
    Cheers,
    Allen

  • [solved]how to extract recent log entries from a file (based on time)?

    I have a daily log file with hundreds of thousands of entries in the following format. 
    field1,field2,field3,field4,field5,field6,field7,field8,field9,20110516192001.100
    field1,field2,field3,field4,field5,field6,field7,field8,field9,20110516192002.200
    field1,field2,field3,field4,field5,field6,field7,field8,field9,20110516192003.300
    field1,field2,field3,field4,field5,field6,field7,field8,field9,20110516192004.400
    field1,field2,field3,field4,field5,field6,field7,field8,field9,20110516192005.500
    It's always in the same format and the 10th field is always the timestamp (YYYYMMDDHHMMSS.MS)
    Since the file rotates daily, the 10th field will always be 20110516xxxxxx.xxx for today and will be 20110517xxxxxx.xxx tomorrow
    What I want to do is only look at entries that have been written in the last 30 minutes.
    At a high level, here's my plan
    1) Get the date/time from 30 minutes ago... write it to a variable
    2) Iterate through the file line by line comparing the 10th field to the variable, if it's larger write the line to a tmp file
    3) Use tmp file for my analysis
    This seems incredibly inefficient to me...  what would be a more graceful way to do it?  I have regular solaris tools at my disposal (plus python)
    Thanks
    Last edited by oliver (2011-05-17 12:41:43)

    The algorith you describe really is a viable approach.  Since this is a log file, each line should have a time stamp later than all lines that preceed it in the file. A more efficient algoithm could do a binary search through the file for the time stamp you are interested in.  This would be easy enough in to do in C or python, but your algoithm could be fast enough. If this is the case, you could try the following quick & dirty bash script.
    #!/bin/bash
    seconds() {
    secs=$(($1 % 100))
    mins=$(($1 / 100 % 100))
    hrs=$(($1 / 10000 % 100))
    days=$(($1 / 1000000 % 100))
    month=$(($1 / 100000000 % 100))
    year=$(($1 / 10000000000))
    (LC_TIME=C date +%s -d $(printf "%d-%02d-%02d %2d:%02d:%02d" $year $month $days $hrs $mins $secs))
    found=0
    now=$(date +%s)
    while read line
    do
    if [ "$found" -eq "0" ]
    then
    ts=${line##*,}
    ts=$(seconds ${ts%.*})
    diff=$(( ($now - $ts)/60 ))
    [[ $diff -lt "30" ]] && found=1
    fi
    [[ $found -ne 0 ]] && echo "$line"
    done < $1
    It will write (to stdout) all lines following the first line that has been time stamped within the last 30 minutes (ignoring milliseconds). You could redirect the output of this script to a file of your choice for analysis as follows:
    $ ./script logfile > tmp
    Last edited by rockin turtle (2011-05-17 06:58:41)

  • In attempting to export a simple 1-page PDF file to Microsoft Word, I incessantly get the following error message:  "An error occured [sic] while trying to access the service."  Nothing on any of the community forums has helped in any way.  I have downloa

    In attempting to export a simple 1-page PDF file to Microsoft Word, I incessantly get the following error message:
    "An error occured [sic] while trying to access the service." 
    Nothing on any of the community forums has helped in any way. 
    I have downloaded a free trial of Acrobat XI Pro  --  and that too makes no difference.

      while trying to access the service." 
    That'd be associated with trying to connect to the server(s) for one of the Adobe online subscription services.
    (Edit PDF or PDF Pack)
    These online services are separate and independent of the desktop application Acrobat.
    It appears that you have had / are having internet connection issues.
    Be well...

  • Script request for  exporting, importing, inserting entry to Oracle 9i LDAP

    Do anyone has the scripts for exporting, importing, inserting entry to Oracle 9i LDAP server? Thanks for help.

    you can use ldapsearch utility to generate ldif files. Perform a search on the node you want to export and specify the output to be in LDIF format ( -L - this is a ldapsearch option). Once you have the ldif file, you can import it to any LDAPv3 complaint server such as OID. for OID, use ldapadd/ldapmodify utility to import the data.
    These utilities are present under IAS_HOME/bin or ORACLE_HOME/bin.

  • How to  send the  output into separate file..(from spool)

    Hi  friends,
       i was create a  executable program  .. it was executing fine.. imagine.. my program is just  fetching  the data from MARA  table based on some conditions..  every thing is fine.. and i'm getting the output also..
           but i want to save this output in a separate file.. that means..  what can i do.. my program is  executing background... so, i want to save this out put in a file... so, can any one plz provide me the  coding steps...
            i dont know coding.. I'm learning ABAP... so, can you plz provide the exact coding..for storing these data into separate file from spool..
    help ful answers will be rewarded
    Thanks
    Babu

    hi
    if you want the o/p data in the seperate file in-addition to the spool
    call FM : 'GUI_DOWNLOAD'
    pass file name as
    w_localfile = 'C:\fite.txt'
    itab
    = the final o/p table                                                                               
    CALL FUNCTION 'GUI_DOWNLOAD'
          EXPORTING
            filename                = w_localfile
            filetype                = 'ASC'
            write_field_separator   = 'X'
          TABLES
            data_tab                = itab
          EXCEPTIONS
            file_write_error        = 1
            no_batch                = 2
            gui_refuse_filetransfer = 3
            invalid_type            = 4
            no_authority            = 5
            unknown_error           = 6
            header_not_allowed      = 7
            separator_not_allowed   = 8
            filesize_not_allowed    = 9
            header_too_long         = 10
            dp_error_create         = 11
            dp_error_send           = 12
            dp_error_write          = 13
            unknown_dp_error        = 14
            access_denied           = 15
            dp_out_of_memory        = 16
            disk_full               = 17
            dp_timeout              = 18
            file_not_found          = 19
            dataprovider_exception  = 20
            control_flush_error     = 21
            OTHERS                  = 22.
        IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
    thanks & regards
    vinsee

  • PDF Export fails because of "bad" TIF files

    I'm having this problem with InDesign CS3 on MacBook Pro, OS 10.5
    PDF export fails occasionally, becasue of some "bad" TIF files. The weird part is that those files are completely good TIF files, which are perfectly readable by any other program! After I resave the supposedly bad file again, it helps, and the PDF export works fine. BUT - imagine me working with a project with 800 images?!! Thanks to some good scripting and forum people, I have found a way to locate the bad images quite fast by using a script that exports each page as a separate PDF, then at least I know at which page it fails. But it's a hassle to do that every time!
    Last time I found about 60 "bad" files out of 862.
    Why the heck InDesign treats some TIF files as bad? Even if it does, it could at least create a log file, that will tell me at which page the export failed! this could be a real help!
    I've asked this question in Photoshop forums, but one of the employees replied that Photoshop doesn't produce bad files. Well, I'm not sure I can belevie that, but that's what they say.

    What settings do you use when you save as TIFF ?
    On PC platform sometimes InDesign treat TIFFs as "bad" when they are exported with "for Mac" settings.
    Or maybe you should switch do PSD format ?
    robin
    www.adobescripts.co.uk

  • Store a container in separate files

    Is it possible to store a container in separate files?

    For example: I want to have one container only with the name, tv_show. In tv_show, I have millions of documents. Everytime, when I access, my path would be "dbxml:/tv_show" (something like this).
    From what you are saying, does that mean I should create numbers of containers for the tv_show?
    1. What are the advantages of creating numbers of containers and disadvantages of it?
    2. Should I have the exactly the same documents across the different containers or I should separate them?
    3. If the answer for the previous question is "separate them", how should I know which documents are in what container(s)?
    4. Or, it is possible to have the only container, tv_show. When thousands of users try to update nodes, it won't reduce the "read-only" access speed for the other users?
    Please forgive me if those questions do not seem clear or seems dumb. I am pretty new to the sleepcat DB, and I am very curious about it.

Maybe you are looking for

  • How do I find out what itunes account an app was bought on?

    Hello, I have a few apps that I can't synch with my new phone. I have no idea what iTunes account they were bought on. Is there any way to find out without having to log on any account (maybe in the info of the file or something...?) ? Thank you!

  • BLOB Vs XMLTYPE, which is better!!?

    Hi all, we currently store our XMLs as BLOB in a relational table, now we need to do wildcard search on the XML and are thinking of changing the column to XMLTYPE for better performance. But still we know there are options for wildcard searching in B

  • How can I tell what GB my ipod shuffle 2nd generation is?

    How can I tell what GB my ipod shuffle 2 nd generation is?

  • Inventory Control software/App/Template?

    Hi Im running a small business on retail, clothing. I need an app or a software to control inventory in which I can use my macbook pro for entering everything but is compatible with my ipad so that when i visit my POS I can modify stock quantities. D

  • Editing photo in Photoshop and then getting it back in Book

    I've made my preferences to edit in Photoshop. When I'm done editing and I "save" the image, it doesn't change it in the book. I don't see the edited photo in the unplaced photo pane either. The edited photo is in the photo album. How do I get it int