On Thu, Apr 21, 2016 at 12:24:10PM +0100, Martin wrote: > On RISC OS, if I want to copy a file from the current directory in > Documents into another directory and then start an application in one go, > I just have to create an Obey file containing something like... > > *Copy <Obey$Dir>.source <Obey$Dir>.^.RPCEmu.hostfs.target F~C~V > *Run <Apps$Dir>.!RPCEmu > > How can that Obey file be translated to Mac speak? > > I am then planning to set RISC OS to run my application at boot, then > shut itself down if all ok.
How about something like: #!/bin/sh PARENT_DIR=$(dirname $0) HOSTFS_DIR=$HOME/Library/Application\ Support/RPCEmu/hostfs cp -a $PARENT_DIR/source $HOSTFS_DIR/target open /Applications/RPCEmu.app (that assumes you put RPCEmu in /Applications and didn't change the default hostfs location) Theo _______________________________________________ Rpcemu mailing list [email protected] http://www.riscos.info/cgi-bin/mailman/listinfo/rpcemu
