// -*- ASCII:EDT -*- // This Macro opens GhostView with either a .eps, .pdf or .ps file LetReg(2,""); IfFileExists> ("%p\%n.ps",> "LetReg(2,'%p\%n.ps')"); IfFileExists> ("%p\%n.pdf",> "LetReg(2,'%p\%n.pdf')"); IfFileExists> ("%p\%n.eps",> "LetReg(2,'%p\%n.eps')"); IfStr("%!2","","<>",> "Run('%$(|GSView|); %!2');"); LetReg(2,""); End; --------------------------------------------------------------------- In the menu configuration of WinEdt set "Requires File" to %p\%n.ps?%p\%n.eps?%p\%n.pdf by Uwe Zimmermann, 2003 uwezi@geocities.com This macro comes with no warranty: it may or may not work with your version of GhostView. You'll have to fix any problems by yourself! Happy hacking... ---------------------------------------------------------------------