Batch converting documents


 
Thread Tools Search this Thread
Operating Systems Solaris Batch converting documents
# 1  
Old 11-01-2007
Batch converting documents

Here is the situation. We are a company that has been using a professional publishing system, the software is called "ProType". It runs on Solaris 2.4, however it is no longer supported and we are forced to move on to Adobe Indesign. We must convert all our documents (thousands) to InDesign format. ProType comes with an export utility that exports the text to ASCII with all the formatting etc.

The problem is that the export process takes some time for each file. It is taking a VERY long time to export these documents.

How difficult would it be to loop through the documents in a folder, open them in ProType, export them, save, and close them?

As far as I know ProType does not support any type of scripting.
# 2  
Old 11-01-2007
assuming ProType comes with the stand-alone converter:
Code:
#!/bin/ksh
for file in *
do
   myProTypeConverter "${file}"
done

# 3  
Old 11-01-2007
Thank you, that's very nice of you to write the code for us.

It looks like I should be putting the folder name where the * and myProTypeConverter is the variable that holds the command to run the converter.

I don't even know what to do to run the code.

I was really hoping someone would tell us if it's possible and my next question would be how do I find someone to hire to do it for us.

The way we would export them one by one is to open ProType and then open the file and then there is a command in ProType to export to ASCII. Being that ProType does not have a scripting capabilities I was worried it would not be possible to eport through Solaris alone and that it would be necessary to someone go into the programming of ProType. Do you think this is true?
# 4  
Old 11-01-2007
Fred,
look through the ProType docs to see if there's any 'command line' utility to do the conversion. That would the first step! If there is, it would be a matter of simple scripting to do what you need.
# 5  
Old 11-06-2007
I'm sorry this took so long.

Ok, yes, it is in fact a command line utility. If I were to be doing it now I would do this:

1) Type: cd /bedford6:/export

2) Then I would type the directory of where the files I want to export are, for example cd /home/mesorah/layout

3) Then I would type: expage P Pg001 > Pg001 where "P Pg001" would be the name of the current file and "Pg001" would be then name of the exported file (the exported file needs to drop the first P).

Could this be automated with a script to loop through every document in a directory while making sure to leave out the P when typing the exported page?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Converting the following batch script to Linux shell

I am currently migrating to ubuntu from my windows system. Now I am learing to convert all my batch scripts into linux shell. Although the common commands are more or less similar, but I found it difficult for the following set of commands in windows cmd: setlocal :PROMPT SET /P... (2 Replies)
Discussion started by: net.genere
2 Replies

2. Shell Programming and Scripting

Converting DOS Batch file to Shell Script

Hi, This is my DOS Batch file. @echo off echo "Program Name :" %0 rem echo "Next param :" %1 echo "Next param :" "Username/Password" echo "User Id :" %2 echo "User Name :" %3 echo "Request ID ... (4 Replies)
Discussion started by: Rami Reddy
4 Replies

3. Shell Programming and Scripting

Executing a batch of files within a shell script with option to refire the individual files in batch

Hello everyone. I am new to shell scripting and i am required to create a shell script, the purpose of which i will explain below. I am on a solaris server btw. Before delving into the requirements, i will give youse an overview of what is currently in place and its purpose. ... (2 Replies)
Discussion started by: goddevil
2 Replies

4. UNIX for Dummies Questions & Answers

2 (two) here documents in a row

Ok, it may sound a bit stupid but I can't find the answer.. How do one put 2 here documents in a row? for instance, i want to do something like: diff <<eof <<eof2 # doesn't work... > a > b > eof > a > c > eof2 its mostly to satisfy my curiosity!! thanks, Anthony (4 Replies)
Discussion started by: anthalamus
4 Replies

5. AIX

books & documents

can someone tell me the name of the books for aix it is better if some one provide me links to any useful document (2 Replies)
Discussion started by: alokjyotibal
2 Replies

6. Shell Programming and Scripting

Opening multiple documents at once

I'm trying this:$ for n in `ls` ; do xterm -e vim $n & ; done bash: syntax error near unexpected token `;' $I want to edit my files all at once, not one at a time. How can I do that? (2 Replies)
Discussion started by: Orange Stripes
2 Replies

7. OS X (Apple)

keyword searching of documents

Unix based fix-it needed? Platform and feature: search programs on Apple computers (Leopard or Tiger; 10.4 and above; Spotlight) Problem: the document search feature of these programs produce hits when keyword(s) used appear anywhere in the document's content. Change required: we need to... (1 Reply)
Discussion started by: Miles
1 Replies

8. Shell Programming and Scripting

Converting Shell script to Dos batch files

Hi friends! I am having some simple shell script files to build postgresql database and all. Now i want to convert those scripts to dos batch scripts(to run on windows XP/2000/NT) because there is no need of unix emulation for latest release of postgresql. Please somebody help me. (1 Reply)
Discussion started by: darwinkna
1 Replies

9. Solaris

sudo documents

I have installed sudo on our development server (SPARC,Solaris 9) and trying to edit /etc/sudoers file using visudo. Referred the following sites and not able to find the way. http://www.courtesan.com/sudo/man/sudoers.html http://www.kempston.net/solaris/sudo.html To start with sudo, my... (3 Replies)
Discussion started by: chrs0302
3 Replies

10. UNIX for Dummies Questions & Answers

Printing documents using LaTeX

Hi I want to know how to give a file for printing using Latex formatting also where can I get the latex s/w . Thanks in advance (1 Reply)
Discussion started by: gosavi_ganesh
1 Replies
Login or Register to Ask a Question