SlideShare uma empresa Scribd logo
1 de 1
%!
% PostScript program for distilling and combining an entire folder or
% directory of PostScript files.
% When embedding font subsets, it is highly recommended you use this technique
% to distill multiple PS files so only one font subset is used for each font.
/PathName (Macintosh HD:Test:*.ps) def % Edit this to point to the folder
% containing the PS files.
/RunDir { % Uses PathName variable on the operand stack
{ /mysave save def % Performs a save before running the PS file
dup = flush % Shows name of PS file being run
RunFile % Calls built in Distiller procedure
clear cleardictstack % Cleans up after PS file
mysave restore % Restores save level
}
255 string
filenameforall
} def
PathName RunDir
% INSTRUCTIONS
%
% 1. Place all PostScript files to be distilled and concatenated in a single
% directory. For example, here are example names of PS files that might
% be used to distill a book:
%
% ac001.ps Cover
% bt001.ps Table of Contents
% ch001.ps Chapter 1
% ch002.ps Chapter 2
% ch003.ps Chapter 3
% in001.ps Index
%
% 2. Make a copy of this file and give it the name you want to have as the
prefix
% for the resulting file. For example, you could name this file MyBook.txt.
%
% IMPORTANT: Don't use the .ps suffix if this file is in the same folder as the
% rest of your .ps files. The RunDir command will execute all files that end
in
% .ps and this file will be distilled twice!
%
% 3. Redefine the variable "PathName" above to point to the folder/directory
which
% contains your PS files.
%
% Macintosh pathname syntax: /PathName (Macintosh HD:Folder:*.ps) def
% Windows pathname syntax: /PathName (c:/mydir/*.ps) def
% UNIX pathname syntax: /PathName (./mydir/*.ps) def
%
% Note: The syntax for Windows may look strange, but double escaping the
% backslash character is required when using filenameforall.
%
% 4. Distill the file on the machine running Acrobat Distiller.

Mais conteúdo relacionado

Mais procurados (7)

Linux shell scripting
Linux shell scriptingLinux shell scripting
Linux shell scripting
 
Chap06
Chap06Chap06
Chap06
 
Shell Scripting
Shell ScriptingShell Scripting
Shell Scripting
 
Shell & Shell Script
Shell & Shell Script Shell & Shell Script
Shell & Shell Script
 
Linux shell env
Linux shell envLinux shell env
Linux shell env
 
File in C programming
File in C programmingFile in C programming
File in C programming
 
Unix Basics
Unix BasicsUnix Basics
Unix Basics
 

Semelhante a Rundirex

sentence outline
sentence outlinesentence outline
sentence outline
hotgirlc
 
Linux commands
Linux commandsLinux commands
Linux commands
U.P Police
 
Building File Systems with FUSE
Building File Systems with FUSEBuilding File Systems with FUSE
Building File Systems with FUSE
elliando dias
 
The one page linux manual
The one page linux manualThe one page linux manual
The one page linux manual
Craig Cannon
 

Semelhante a Rundirex (20)

sentence outline
sentence outlinesentence outline
sentence outline
 
Rundirex
RundirexRundirex
Rundirex
 
BITS: Introduction to Linux - Text manipulation tools for bioinformatics
BITS: Introduction to Linux - Text manipulation tools for bioinformaticsBITS: Introduction to Linux - Text manipulation tools for bioinformatics
BITS: Introduction to Linux - Text manipulation tools for bioinformatics
 
php
phpphp
php
 
php
phpphp
php
 
Unix Basics For Testers
Unix Basics For TestersUnix Basics For Testers
Unix Basics For Testers
 
Unix cmd
Unix cmdUnix cmd
Unix cmd
 
Directories description
Directories descriptionDirectories description
Directories description
 
file_handling_in_c.ppt
file_handling_in_c.pptfile_handling_in_c.ppt
file_handling_in_c.ppt
 
Linux commands
Linux commandsLinux commands
Linux commands
 
Files nts
Files ntsFiles nts
Files nts
 
Building File Systems with FUSE
Building File Systems with FUSEBuilding File Systems with FUSE
Building File Systems with FUSE
 
The one page linux manual
The one page linux manualThe one page linux manual
The one page linux manual
 
The one page linux manual
The one page linux manualThe one page linux manual
The one page linux manual
 
Linux
LinuxLinux
Linux
 
Complete Guide for Linux shell programming
Complete Guide for Linux shell programmingComplete Guide for Linux shell programming
Complete Guide for Linux shell programming
 
Karkha unix shell scritping
Karkha unix shell scritpingKarkha unix shell scritping
Karkha unix shell scritping
 
Linux_Commands.pdf
Linux_Commands.pdfLinux_Commands.pdf
Linux_Commands.pdf
 
unix_ref_card.pdf
unix_ref_card.pdfunix_ref_card.pdf
unix_ref_card.pdf
 
unix_ref_card.pdf
unix_ref_card.pdfunix_ref_card.pdf
unix_ref_card.pdf
 

Rundirex

  • 1. %! % PostScript program for distilling and combining an entire folder or % directory of PostScript files. % When embedding font subsets, it is highly recommended you use this technique % to distill multiple PS files so only one font subset is used for each font. /PathName (Macintosh HD:Test:*.ps) def % Edit this to point to the folder % containing the PS files. /RunDir { % Uses PathName variable on the operand stack { /mysave save def % Performs a save before running the PS file dup = flush % Shows name of PS file being run RunFile % Calls built in Distiller procedure clear cleardictstack % Cleans up after PS file mysave restore % Restores save level } 255 string filenameforall } def PathName RunDir % INSTRUCTIONS % % 1. Place all PostScript files to be distilled and concatenated in a single % directory. For example, here are example names of PS files that might % be used to distill a book: % % ac001.ps Cover % bt001.ps Table of Contents % ch001.ps Chapter 1 % ch002.ps Chapter 2 % ch003.ps Chapter 3 % in001.ps Index % % 2. Make a copy of this file and give it the name you want to have as the prefix % for the resulting file. For example, you could name this file MyBook.txt. % % IMPORTANT: Don't use the .ps suffix if this file is in the same folder as the % rest of your .ps files. The RunDir command will execute all files that end in % .ps and this file will be distilled twice! % % 3. Redefine the variable "PathName" above to point to the folder/directory which % contains your PS files. % % Macintosh pathname syntax: /PathName (Macintosh HD:Folder:*.ps) def % Windows pathname syntax: /PathName (c:/mydir/*.ps) def % UNIX pathname syntax: /PathName (./mydir/*.ps) def % % Note: The syntax for Windows may look strange, but double escaping the % backslash character is required when using filenameforall. % % 4. Distill the file on the machine running Acrobat Distiller.