On Friday, 21 August 2020, CUNIASSE Philippe <[email protected]>
wrote:

> Dear all,
>
> I installed relax (the dmg version on my Macbookpro running osx 10.12.
> When starting relax by typing relax (which execute the.
> Relax.app/Contents/MacOS/relax) the program starts in GUI and not in the
> standard UI format. Thus, I cannot run scripts by a command like “relax
> input.py” as the program start in GUI without reading my script.
>
> Does somebody have any suggestion to run relax not in graphical mode ?
>
> Thanks in advance for your help.
>
>
Salut  Philippe!

Welcome to the relax mailing lists.  For a Mac OS X app, I don't think you
can use command line options.  The 'relax' file you found is a wrapper, I
think, and not the normal to relax starting script.  I cannot test this
right now, but have you seen this solution of creating an Applescript?


https://superuser.com/questions/16750/how-can-i-run-an-application-with-command-line-arguments-in-mac-os

I'll replicate the top answer here, for the record [1].  Otherwise you will
need a development environment (XCode) and use git to obtain the relax
source code.

Regards,
Edward



[1]. Here's my best solution: Create an Applescript with:

do shell script "/Applications/Firefox.app/Contents/MacOS/firefox -P
default -no-remote & killall Firefox.app"

And *save it as an application*.

You can put whatever application with whatever args in the first part. The
part after the & needs to kill whatever you have named your script + .app.
You'll see the script app flash up in the dock, but it will then disappear.

Note: The script will not work properly when run from Script Editor, only
when run from the script application you have.created.
share <https://superuser.com/a/16777> improve this answer
<https://superuser.com/posts/16777/edit> follow
answeredAug 1 '09 at 11:56
<https://superuser.com/users/650/mjeffryes>
MJeffryes <https://superuser.com/users/650/mjeffryes>
1,312●77 silver badges●1414 bronze badges
_______________________________________________
nmr-relax-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nmr-relax-users

Reply via email to