Allthough I am working with the ConTeXt beta version, I hope you will get things running in TeXShop by analogy as it does for me.

On OSX there are directories used by TeXShop one of which is  ~/Library/Engines. The text files there contain scripts that callup a tex run. In my case I have a text file called BetaCur.engine to be found in the run popup button of TeXShop. In it I have:
#!/bin/bash
source ~/.bashrc
mtxrun --script context "$1"

In the .bashrc file in my home directory the directory where the ConTeXt files reside is given amongst other defines:
CONTEXTROOT=$HOME/Applications/TeX-programs/directory-of-my-contextbeta-files/tex
export CONTEXTROOT
PATH=$PATH:$CONTEXTROOT/texmf-osx-64/bin

I hope this will help you to customize things to your setup.

Hans van der Meer




On 1 Sep 2017, at 10:27, Jeong Dal <haksan@me.com> wrote:

Dear all,

1. Today, I installed TeXlive 2017 using MacTeX and do a simple test using TeXshop.

When I run a sample file using “ConTeXt(LuaTeX)”, then I got an error message:

mtxrun          | unknown script 'context.lua' or 'mtx-context.lua'

I also did “mtxrun —generate”in the terminal which runs well.  But “luatools —generate” also issue the similar error message:

mtxrun          | unknown script ‘base.lua’ or 'mtx-base.lua'

However, it runs well under Stand-alone ConTeXt.
What I have to do to make TeXlive work?

2. Recently, I also installed Textadept in OS X for test, and follow the steps explained in the wiki.

If I open textadept in the terminal(open -a textadept), ConTeXt, lua, Python worked OK. 
But it  issued an error message as following  when I open it directly from the application folder.

> mtxrun --autogenerate --script context --autopdf --purge --synctex=-1 "Main.tex"
Failed to execute child process "mtxrun" (No such file or directory)
> exit status: 256

In the terminal, echo $PATH contains the folder “/Library/TeX/texbin” which contains all executables of TeXlive 2017.
Is there anything that I have to do more?

Thank you for reading.

Best regards,

Dalyoung
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________