[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: frescobaldi clipboard file name

From: David Wright
Subject: Re: frescobaldi clipboard file name
Date: Mon, 23 Apr 2018 08:48:31 -0500
User-agent: Mutt/1.5.21 (2010-09-15)

On Mon 23 Apr 2018 at 09:43:01 (+0200), Gianmaria Lari wrote:
> The following frescobaldi snippet call the "" program with the
> parameter "\\readme"
> -*- python;
> from subprocess import call
> call(["", "\\readme"])
> This other one-line snippet pastes, in the frescobaldi editor window at the
> cursor position, the lilypond file name (including path) of the current
> document
> Now I would like to merge the two worlds:) I would like a snippet that
> calls an external application passing as parameter $FILE_NAME.
> Any suggestion?

import os # likely to have been imported already
call(["", os.environ['FILE_NAME']])


reply via email to

[Prev in Thread] Current Thread [Next in Thread]