Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'good work smark' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
good work smark
Authored by: jimr on Oct 17, '01 01:02:50PM
here is some modification to your script
so you can have a help flag
and choose to just open or choose to open an existing file

now if we can use that other hint about osascript to open a new file....
hmmmmmm

I also suspect that closing, then opening the terminal from the Apple menu will log you in as root while you have bbedit opened by sudo.


yes it does.....

however the amusing thing is that terminal was not in the list of recent apps
as it is open alot without closing and had been moved out of my recent 10....
so I had to open it once more...from the dock to get it to appear.

anyway be careful with any GUI app opening as root user....until apple makes some security fix...
----cut here----





#!/bin/sh

if test -n $1 && test $1 = "-h"; then
echo usage: bbopen file1 file2 ...
echo bbopen -h show help
exit
fi

if test -z $1; then
open "/Applications/Text/BBEdit 6.1 for OS X"
echo Opening BBEdit

else
open -a "/Applications/Text/BBEdit 6.1 for OS X" $*
echo Opening $* with BBEdit
fi


[ Reply to This | # ]
damn!!!!!
Authored by: jimr on Oct 17, '01 02:17:37PM

thought I got rid of that parameter error

back to the drawing board works but not perfect



[ Reply to This | # ]