Re: xcode printing and enscript?
Re: xcode printing and enscript?
- Subject: Re: xcode printing and enscript?
- From: Greg Guerin <email@hidden>
- Date: Wed, 8 Nov 2006 16:33:47 -0700
mercer wrote:
>If you're not familiar with enscript (man enscript), this command:
>
> enscript -G -2 -fCourier6 -r -p - SomeFile.m > SomeFile.ps
>
>will produce a PostScript file in 6-point courier, 2 colums, landscape.
>
>
>This'll print it:
>
> enscript -G -2 -fCourier6 -r -p - SomeFile.m | lpr
>
>Is there a way to plug something like this into Xcode to get it to use
>enscript?
A) Use the Print dialog to create a named preset for 2-up output. Set the
page scale-factor to adjust the amount of text per page. To read how to do
this, open Mac Help in the Finder and enter these keywords:
print preset
B) Create a target with a shell script build phase that runs 'enscript'
using the options you want. To print files, build the target.
C) Create a script for Xcode that runs 'enscript'. Add it to the scripts
menu. To read how to do this, open Xcode Help and enter these keywords:
scripts menu
-- GG
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden