[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: gEDA-user: current working file name in gschemrc



Hi Kai-Martin Knaak,

(get-selected-filename) is a Gschem Scheme procedure which
returns the current page filename as string. May be you can
try something like this:

(print-command (string-append "lp -d PDF -t "
    (basename (get-selected-filename)))

The above works only if your Gschem filename does
not contain spaces.  Otherwise, try:

(print-command (string-append "lp -d PDF -t \""
    (basename (get-selected-filename)) "\"")

Hope it helps.

Best Regards,
Paul Tan



_______________________________________________
geda-user mailing list
geda-user@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user