I don't think that PhotoShop allows an external source to
launch/execute a JSX file to be used within PhotoShop.
Also, understand that JSX files use specialized commands that
are not recognized in Director. Director, like PhotoShop, simply
transcend but a vast majority are application specific.
Thus, putting JSX code in Director is going to get you no
where. In addition, there is no way, that I know of, to pass JSX
files into PhotoShop for execution.