Is it possible to create a batch file in Mac OS?
MacBook Pro 15 inch, Mac OS X (10.6.6)
Coming soon: Apple Event on 9/9 at 10 a.m. PT
MacBook Pro 15 inch, Mac OS X (10.6.6)
In MS-DOS, a batch file is a text file containing a series of commands intended to be executed by the command interpreter. It's very convenient and handy. Is it possible to do the same in Mac OS?
I tried the automator of Mac OS and copied the workflow, but it is quite clumzy and painfully slow, and stops working afte a relaunch.
python /Applications/localproxy/proxy.py
#!/bin/bash
#this is a comment-the first line sets bash as the shell script
cd /Applications;
cd ./localproxy;
python ./proxy.py;
exit;
#!/bin/bash
# catx - a script to read text
# from a text file and paste it
# to the clipboard.
FNAME=$1
if [[ -z "$FNAME" ]]; then
echo "catx <name of file>"
echo " catx is a script to read text from a"
echo " text file and paste it to the clipboard."
exit;
fi
cat "$FNAME" | pbcopy
exit;
its possible as of now I am doing batch programing on my mac just open textedit and code away when your done just save the file in .bat
software needed
javascript:;
ill be honest apple script took me around 5 minutes to learn completely its pretty easy and smaller to batch but much easier to learn.
Is it possible to create a batch file in Mac OS?