Reconfigure from script
Dr Eberhard W Lisse
nospam at lisse.NA
Sun Feb 19 19:36:10 UTC 2023
if LyX is running you can save all open buffers to disk and then quit by
way of something like (multiple levels of double quotes are required
(on the Mac due to the space in ~/Library/Application Support/Lyx-2.3))
pushd "$(dirname "$(find ~/Library -name .lyxpipe.in -type p)")"
echo "LYXCMD:test:buffer-write-all" > .lyxpipe.in
echo "LYXCMD:test:lyx-quit" > .lyxpipe.in
and then (on the Mac)
/Applications/LyX.app/Contents/Resources/configure.py
osascript -e 'tell application id "org.lyx.lyx" to activate'
or (on Linux, but since I use the Mac it's not tested)
configure.py
lyx &
and on all
popd
greetings, el
On 19/02/2023 20:35, Richard Kimberly Heck wrote:
> On 2/18/23 18:11, Mark Livingstone wrote:
>> Hi People,
>>
>> I am using LyX 2.3.7 on Mac OS Ventura.
>>
>> Is it possible to run reconfigure from script in the terminal, if so
>> how?
>
> Just execute the file configure.py. It will write the relevant files
> to the current working directory, so make sure you are where you want
> to be when you call it.
>
> Riki
>
>
More information about the lyx-users
mailing list