How do I import an InDesign tagged text file into multiple pages and export as .ps or .pdf using Jav

I have an InDesign tagged text file I've translated from .xml. I need to automate the following steps:
1 - access specific InDesign template (eg. ABC_template.ind)
2 - import tagged text file into InDesign
3 - autoflow text to END of document (normally around 3-5 pages)
4 - save document as either .ps or .pdf file
5 - where the input file stub name matches the output stub name (eg., OrigName.txt outputs as OrigName.pdf).
I would like to completely automate this whole process using JavaScript (because I don't know anyone that knows AppleScript). I've automated the first part using a perl script. I've been trying to find sample snipits of JavaScript that would do one or more of the items listed above, but am having a hard time finding what I need.
Please, I'm desperate!! Can any of you InDesign scripting guru's out there help me??
Thanks in advance!!
LindaD

Hi Linda,
I might be able to help you out. You can contact me by email (click on my user name for the address), or if you post your email here.

Similar Messages

  • How to do import data from the text file into the mathscript window?

    Could anyone tell me how to do import data from text file into mathscript window for labview 8?
    MathScript Window openned, File, Load Data - it has options: custom pattern (*.mlv) or all files. 
    Thanks

    Hi Milan,
    Prior to loading data in Mathscript Window , you have to save the data from the Mathscript window (the default extension of the file is .mlv but you can choose any extension). This means that you cannot load data from a text file  that was not created using the Mathscript window.
    Please let me know if you have any further questions regarding this issue.
    Regards,
    Ankita

  • How do I import my Outlook 2013 PST file into Office 365 and then have them permanently synced?

    I have Office 365. I have Outlook 2013 downloaded on my computer with all my emails and contacts, etc.
    I want to import the entire PST file with my emails, contacts etc. into Office 365 / Exchange Online (cloud?). Once that is done, I want to set it up so that my Desktop Outlook will always update and sync with my Office 365 when I am out of the office and
    use the Outlook mail App.
    PLEASE HELP!

    Hi,
    You can also use Outlook or Outlook Web App to import your existing PST file into your Office 365 account.
    First configure your Office 365 account into Outlook, then use Import/Export
    feature in Outlook client to import your PST file:
    http://office.microsoft.com/en-us/office365-suite-help/migrate-email-and-contacts-into-a-new-office-365-for-business-account-HA103169067.aspx 
    http://office.microsoft.com/en-us/office-online-help/use-outlook-to-move-information-between-email-accounts-HA104218074.aspx?CTT=5&origin=HA103169067
    Regards,
    Ethan Hua
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • I bought Numbers because my Excel files would not work with Mavericks. How can I import a non-functioning Excel file into numbers? (As of now, the file NAME transfers but data is not.) but

    I bought Numbers because my Excel files would not work with Mavericks. How can I import a non-functioning Excel file into numbers? (As of now, the file NAME transfers but data does not.)

    HI Dave,
    I'm surprised you get no message when you attempt opening the Excel document in Numbers.
    I'm assuming Numbers 3.1, since you are running Mavericks.
    Does the Numbers file that opens show any content?
    Does it contain a table?
    How large?
    Does it contain more than one tab (indicating more than one sheet)?
    Do those other tabs contain a table?
    Have you checked those tables for data content?
    There have been cases in the past of imported documents opening with white text on a white background, giving the appearance of containing nothing. Check for this by selecting a block of cells, then applying a Fill colour or a Text colour using the Format button (paintbrush).
    I'd also suggest attempting to open the Excel files using LibreOffice, which can be downloaded from the linked website.
    Regards,
    Barry

  • HT201066 How can I split a long recording audio file into multiple audio files?

    Hi,
    How can I split a long recording audio file into multiple audio files?
    With Windows I was using Nero software, which is not available for Mac. Is there any similar app for free for Mac?
    Thanks!

    Hello ingiorgio
    You can import the track into GarageBand and then split the tracks there. Once that it is done you can highlight the ruler section and then share the song to iTunes to get them separated out. 
    GarageBand - Split regions in the Tracks area
    http://help.apple.com/garageband/mac/10.0/#gbnd76fcce04
    GarageBand - Share songs to iTunes
    http://help.apple.com/garageband/mac/10.0/#gbndfb96a96f
    Regards,
    -Norm G.

  • How to import data from a text file into a table

    Hello,
    I need help with importing data from a .csv file with comma delimiter into a table.
    I've been struggling to figure out how to use the "Import from Files" wizard in Oracle 10g web-base Enterprise Manager.
    I have not been able to find a simple instruction on how to use the Wizard.
    I have looked at the Oracle Database Utilities - Overview of Oracle Data Pump and the Help on the "Import: Files" page.
    Neither one gave me enough instruction to be able to do the import successfully.
    Using the "Import from file" wizard, I created a Directory Object using the Create Directory Object button. I Copied the file from which i needed to import the data into the Operating System Directory i had defined in the Create Directory Object page. I chose "Entire files" for the Import type.
    Step 1 of 4 is the "Import:Re-Mapping" page, I have no idea what i need to do on this page. All i know i am not tying to import data that was in one schema into a different schema and I am not importing data that was in one tablespace into a different tablespace and i am not R-Mapping datafiles either. I am importing data from a csv file.
    For step 2 of 4, "Import:Options" page, I selected the same directory object i had created.
    For step 3 of 4, I entered a job name and a description and selected Start Immediately option.
    What i noticed going through the wizard, the wizard never asked into which table do i want to import the data.
    I submitted the job and I got ORA-31619 invalid dump file error.
    I was sure that the wizard was going to fail when it never asked me into which table do i want to import the data.
    I tried to use the "imp" utility in command-line window.
    After I entered (imp), i was prompted for the username and the password and then the buffer size as soon as i entered the min buffer size I got the following error and the import was terminated:
    C:\>imp
    Import: Release 10.1.0.2.0 - Production on Fri Jul 9 12:56:11 2004
    Copyright (c) 1982, 2004, Oracle. All rights reserved.
    Username: user1
    Password:
    Connected to: Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Produc
    tion
    With the Partitioning, OLAP and Data Mining options
    Import file: EXPDAT.DMP > c:\securParms\securParms.csv
    Enter insert buffer size (minimum is 8192) 30720> 8192
    IMP-00037: Character set marker unknown
    IMP-00000: Import terminated unsuccessfully
    Please show me the easiest way to import a text file into a table. How complex could it be to do a simple import into a table using a text file?
    We are testing our application against both an Oracle database and a MSSQLServer 2000 database.
    I was able to import the data into a table in MSSQLServer database and I can say that anybody with no experience could easily do an export/import in MSSQLServer 2000.
    I appreciate if someone could show me how to the import from a file into a table!
    Thanks,
    Mitra

    >
    I can say that anybody with
    no experience could easily do an export/import in
    MSSQLServer 2000.
    Anybody with no experience should not mess up my Oracle Databases !

  • How to read some records from a text file into java(not all records)

    hello,
    how to read text files into java. i need only few records from the text file not all records at a time.
    If any one knows plz reply me
    my id is [email protected]

    this snipet reads a text file line by line from line 1 to 3
    try {
                  FileReader fr = new FileReader(directory);
                  BufferedReader br = new BufferedReader(fr);
                  int counter = 0;
                  while ((dbconn = br.readLine()) != null) {
                      switch(counter){
                          case 0:
                            status = dbconn;
                          break;
                          case 1:
                            userName = dbconn;
                          break;
                          case 2:
                            apword = dbconn;
                          break;
                      counter++;
                  br.close();
        }catch(IOException e){
        }

  • How do I import an Amadeus Pro sound file into iMovie?

    I am fairly new to the Imovie 08 program and have a few questions.
    I've made the moveie and am in the process of editing out what I need and don't need. I have a sound file that I created in Amadeus pro that I need to use as the voice-over for the movie. I just can't figure out how to use that sound file over the movie. Can anyone help?
    Thanks

    The sound file must be in a supported audio codec like MP3, AAC, or several others.
    Place the sound file in a drive and a folder where you can leave it while your video project is active. If you move it later by using the finder, iMovie will not know how to find it.
    Now, drag the file into iMovie and drop it on the first clip where you want it to start playing.
    This [Video Tutorial|http://www.apple.com/findouthow/movies/ilife08.html#tutorial=audioclip s] may help.

  • Text created in Premiere showing other text files in the timeline and exports.

    Hi,
    I'm creating slates with text generated in Premiere. For each new slate I am duplicating a text layer, Option + Dragging the duplicate file over the text I'd like to replace, then opening the new text layer in the text editor and updating the information.
    Things seem fine at first and then randomly text layers in the timeline will show text from other files in the timeline. If I open the text file up in the text editor I see the correct info but not in the timeline.
    The only fix I have found is to delete render files, move the text layer around in the timeline, quit and re-open. But still, sometimes when I export, the export preview window will show the wrong text and when I export the file I create shows the wrong text as well.
    It seems like Premiere is getting confused by multiple text files in the timeline and is pointing to the wrong cache files.
    Thoughts would be a huge help!

    Thanks for the tip Kevin. Anything I can do to avoid this in the future?
    I've had this happen on a number of projects. My media and project files are on a SAN, cache and previews are local.
    Thanks,
    Mike Brown
    P: (401) 743-7452

  • Import a .eps or .ai files into a Pages document?

    Does anyone know of a way to import .eps or .ai files into a Pages document?

    I tried it again with a new EPS file from the web and drag'n'drop worked fine. 
    After some testing, I suspect that Pages doesn't like encapsulated postscript files that don't have a preview inside, or perhaps old embedded fonts are related;  I honestly don't parse EPS that well, in my head. I hope the preview thing isn't true as that's kinda anti-EPS, but I'll likely not dig further in this case. 
    Full disclosure;  the header did have some random garbage in front of the file, but it didn't seem to be interpreted <≈–”∆ {πôπX ˇˇ%!PS-Adobe-3.0 EPSF-3.0>
    So, it seems I was wrong with my discrete example and it's as easy as drag and drop, if everything is up to date for flookoco.

  • AppleScript Split text file into multiple files

    I have large text files that I would like to break up into individual files. They are compilations of articles; I want to create a new file for each article, which begins with:
         Document # of #
    I don't think any other lines start with "Document" so that might be fine as a delimiter.
    Also, it would be great if the new files could be named "LAT_1", "LAT_2", etc.
    I found this thread:
    AppleScript separating one text file into many at Paragraph break
    I tried the second script by twtwtw and changed
    set parsingText to "Document"
    but got the following error:
    error "Can’t get item 2 of {\"LAT 1985-1990 local food copy.txt\"}." number -1728 from item 2 of {"LAT 1985-1990 local food copy.txt"}
    I also found this thread but it was too complicated for me to understand. Re: Split a large text file with many entries into separate files
    Can anyone help me modify the script? I've been looking at this as well as Unix commands to use in Terminal, but I'm just too much of a beginner.
    Any assistance is much appreciated!
    Trisha

    Hello
    Here's a modified version of the script in
    Split a large text file with many entries into separate files
    https://discussions.apple.com/thread/5641125?tstart=0
    This will split the given text by delimiter line in the form of "Document # of #" and save each chunk of text from one delimiter to the preceding line of the next delimiter in separate file named after LAT_0000.txt, where 0000 is sequential number starting at 0001.
    Note that any text before the first delimiter is ignored and not saved in output file. You may select multiple input files. Existing file in the destination folder is overwritten. Input text is assumed to be in UTF-8 and each line is termitated by U+000A LINE FEED.
    set ff to choose file with prompt "Choose input file(s)." with multiple selections allowed
    set d to choose folder with prompt "Choose destination folder."
    set args to ""
    repeat with a in {d} & ff
        set args to args & " " & a's POSIX path's quoted form
    end repeat
    do shell script "/usr/bin/perl -CSDA -w <<'EOF' - " & args & "
    use strict;
    sub usage () {
        printf STDERR \"Usage: %s output_directory file [file ...]\\n\", $0;
        exit 1;
    &usage() unless @ARGV > 1;
    my $outdir = shift @ARGV;
    unless ( -d $outdir ) {
        printf STDERR \"Not a directory: %s\\n\", $outdir;
        &usage();
    my $i = 0;
    my ($n, $n0, $t);
    while (<ARGV>) {
        if ( /^ \\s* Document \\s+ [0-9]+ \\s+ of \\s+ [0-9]+ .* $/ox ) {
            $n = sprintf('LAT_%04d.txt', ++$i);             # e.g., LAT_0001.txt
            if ( $n0 ) {
                open(OUT, '>', \"$outdir/$n0\") or die $!;  # overwrite
                print OUT $t;
                close OUT;
            ($n0, $t) = ($n, $_);
        else {
            $t .= $_;
    if ( $n0 ) {
        open(OUT, '>', \"$outdir/$n0\") or die $!;          # overwrite
        print OUT $t;
        close OUT;
    EOF"
    Hope this may help,
    H

  • How do you read data from a text file into a JTextArea?

    I'm working on a blogging program and I need to add data from a text file named messages.txt into a JTextArea named messages. How do I go about doing this?

    Student_Coder wrote:
    1) Read the file messages.txt into a String
    2) Initialize messages with the String as the textSwing text components are designed to use Unix-style linefeeds (\n) as line separators. If the text file happens to use a different style, like DOS's carriage-return+linefeed (\r\n), it needs to be converted. The read() method does that, and it saves the info about the line separator style in the Document so the write() method can re-convert it.
    lethalwire wrote:
    They have 2 different ways of importing documents in this link:
    http://java.sun.com/docs/books/tutorial/uiswing/components/editorpane.html
    Neither of those methods applies to JTextAreas.

  • How do i read a context of text file within Dynamic Page of portal ?

    Dear sir,
    I have a text file in client computer. I hope i can transfer the context words of this text file to oracle database. How do i coding this script in dynamic page of portal?
    Can Oaracle 9ias script read and draw the context of a document. Thank you ver much!
    Ghia Liu

    Great questions, Rik, and I understand how this might seem bizarre. Here's the story... these 2500 files were authored with a built-in authoring tool of our current knowledge management system. This KMS is about to be replaced with a new one and because the new KMS needs content within the <head> tag instead of where it was in the <body> tag and redefined as meta data, I repuposed the content in those files using Dreamweaver and regular expressions.  However, the one remaining <h3> and <p> content is in the middle of the newly tagged meta data and it must be moved from the <head> area and into the <body> area.
    Because these were authored in the built-in KMS authoring tool, there is no style sheet and no, we do not manage our content with a CMS.
    You are correct, if the <h3> and <p> were at the end of the data, I could simply move the </head> and <body> tags, but unfortunately that is not the case.  They are consistenly in the same place in all 2500 files, but in the middle of the data. Following is an example:
    <html>
    <head>
    <title>Title here</title>
    <meta name="XYZ" content="Something here...">
    <h3> Blah blah</h3> <p>More blah blah</p>
    <meta name="123" content="More somthing here">
    <meta name="456" content="More somthing here">
    </head>
    <body>
    </body>
    </html>
    Again, I can find the block using a regular expression <h3>(.*?)</p>, but dont know what to do after that.
    I've been told that perl or grep might do the needed task, but that requires outside resources and I have no budget for that.
    Any suggestions are greatly appreciated.
    thanks,
    Rick

  • Importing space delimited iPad text files into number

    Lots of iPad app collect data as space delimited text files ( where is tab key on iPad) how can I import these files into numbers for analysis and plotting?

    Hi Wayne
    In the posted datas, some dates end with a period but some don't.
    Between values there are :
    period (not always. None after the 1st date and after the one just above "no scale travel to Tucson")
    space
    Given the source which I used, I got different spaces.
    In one case they were NO BREAK spaces
    In the example which you posted, the first missing period is revealed
    The second one isn't revealed because you didn't treated the entire set of datas.
    I assume that when there are datas after the decimal values, they are supposed to be in a 3rd column.
    Given these features, I wrote a script deciphering automatically the set of datas.
    Adjust the property « fromClipboard » to match what you use as source.
    --{code}
    --[SCRIPT split-table-from-ipad]
    Treat the set of datas imported from iPad by VerusEx
    see Apple Discussions forum :
    https://discussions.apple.com/thread/3879328?tstart=0
    Yvan KOENIG (VALLAURIS, France)
    2012/04/17
    property fromClipboard : true
    true = get datas from the clipboard
    false : get the datas from a text file
    on run
              if fromClipboard then
                        set lesValeurs to the clipboard as text
              else
                        set lesValeurs to read (choose file of type {"public.plain-text"})
              end if
    Instruction removing NO BREAK spaces which I got when I copied from the mail which I received from the forum.
              set lesValeurs to my supprime(lesValeurs, character id 160)
    Replace every groups of space characters by a single one
              repeat
                        if lesValeurs does not contain "  " then exit repeat
                        set lesValeurs to my remplace(lesValeurs, "  ", space)
              end repeat
    Replace single digit + space by single digit + tab.
    Useful to take care of cases when period is missing,
    or to split strings stored after a digit + a space
              repeat with i from 0 to 9
                        set lesValeurs to my remplace(lesValeurs, (i as text) & space, (i as text) & tab)
              end repeat
    Replace period + space by a tab
              set lesValeurs to my remplace(lesValeurs, ". ", tab)
    Save the deciphered datas in a temporary text file
              set leFichier to (path to temporary items as text) & "azertyuiop.txt"
              my writeTo(leFichier, lesValeurs, text, false)
    Open the temporary file in Numbers
              tell application "Numbers" to open leFichier
    end run
    --=====
    replaces every occurences of d1 by d2 in the text t
    on remplace(t, d1, d2)
              local oTIDs, l
              set oTIDs to AppleScript's text item delimiters
              set AppleScript's text item delimiters to d1
              set l to text items of t
              set AppleScript's text item delimiters to d2
              set t to "" & l
              set AppleScript's text item delimiters to oTIDs
              return t
    end remplace
    --=====
    removes every occurences of d in text t
    on supprime(t, d)
              local oTIDs, l
              set oTIDs to AppleScript's text item delimiters
              set AppleScript's text item delimiters to d
              set l to text items of t
              set AppleScript's text item delimiters to ""
              set t to l as text
              set AppleScript's text item delimiters to oTIDs
              return t
    end supprime
    --=====
    Handler borrowed to Regulus6633 - http://macscripter.net/viewtopic.php?id=36861
    on writeTo(targetFile, theData, dataType, apendData)
      -- targetFile is the path to the file you want to write
      -- theData is the data you want in the file.
      -- dataType is the data type of theData and it can be text, list, record etc.
      -- apendData is true to append theData to the end of the current contents of the file or false to overwrite it
              try
                        set targetFile to targetFile as text
                        set openFile to open for access file targetFile with write permission
                        if not apendData then set eof of openFile to 0
      write theData to openFile starting at eof as dataType
      close access openFile
                        return true
              on error
                        try
      close access file targetFile
                        end try
                        return false
              end try
    end writeTo
    --=====
    --[/SCRIPT]
    --{code}
    Yvan KOENIG (VALLAURIS, France) mardi 17 avril 2012
    iMac 21”5, i7, 2.8 GHz, 12 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.3
    My Box account  is : http://www.box.com/s/00qnssoyeq2xvc22ra4k

  • How can I import data from a csv file into databse using utl_file?

    Hi,
    I have two machines (os is windows and database is oracle 10g) that are not connected to each other and both are having the same database schema but data is all different.
    Now on one machine, I want to take dump of all the tables into csv files. e.g. if my table name is test then the exported file is test.csv and if the table name is sample then csv file name is sample.csv and so on.
    Now I want to import the data from these csv files into the tables on second machine. if I've 50 such csv files, then data should be written to 50 tables.
    I am new to this. Could anyone please let me know how can I import data back into tables. i can't use sqlloader as I've to satisfy a few conditions while loading the data into tables. I am stuck and not able to proceed.
    Please let me know how can I do this.
    Thanks,
    Shilpi

    Why you want to export into .csv file.Why not export/import? What is your oracle version?
    Read http://www.oracle-base.com/articles/10g/oracle-data-pump-10g.php
    Regards
    Biju

Maybe you are looking for

  • Error taking CR2 image to Photoshop CS2

    Using LR v1 & WIn XPPro Am in the develop module, click on Ctrl E, In the pop up the only option I have is Edit a copy with Lightroom adjustments, click on Edit & a 2nd window saying "Lightroom was unable to prepare the selected file < filename> for

  • Combining Office 2010 word docx files or doc files into pdf freezes Adobe Acrobat 9.X

    When combining multiple Office 2010 Word docs into one pdf causes Adobe to freeze. A word dialog box pops-up prompting to save the pdf to start out(which is incorrect). Naming the pdf should be the last step. It does save the first doc into the pdf y

  • Nested While Statements

    Hey guys, Im fairly new to Java programing and i have hit a brick wall in my coding. My program is a Multi-choice questionaire. And all works fine until i add the error checking code in, and i dont get (and I can't get to work) nested will statements

  • Does your "Frequent locations" track every where you go?

    I have an iPhone 4S running iOS7, which I updated about 2 weeks ago.  However, so far no " Time to next desitination" shows up in the notification center.  I went to "Frequent locations" in the Settings and found that while the phone has recorded my

  • Copy in mail file is too small to read easily. Cannot find solution.

    In fact all copy on the monitor is too small...seemingly by default. Cannot find solution.