/* * Mozilla.bsh - a BeanShell script for previewing HTML files * Copyright (C) 2002 Pete Prodoehl * pete@rasterweb.net * * This script expects two things: * * 1. That you are using Mac OS X, and Mozilla. * 2. That Mozilla is installed in it's default location. * * There is an associated icon for this script at: * http://rasterweb.net/raster/code/src/jedit/preview/Mozilla.gif * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with the distribution of the jEdit program; * if not, write to the Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * * $Id: Mozilla.bsh,v 1.1 2002/05/21 20:54:31 pete Exp pete $ */ void viewInMozilla() { strCmd = new StringBuffer(); // below is the line you'll have to edit if you are not using Mac OS X // or if Mozilla is installed somewhere else... strCmd.append("open -a /Applications/Mozilla/Mozilla.app"); strCmd.append(" "); strCmd.append('"'); strCmd.append(buffer.getPath()); strCmd.append('"'); runInSystemShell(view, strCmd.toString()); } viewInMozilla(); /* end */