/* * Internet_Explorer.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 Internet Explorer. * 2. That Internet Explorer is installed in it's default location. * * There is an associated icon for this script at: * http://rasterweb.net/raster/code/src/jedit/preview/MSIE.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: Internet_Explorer.bsh,v 1.1 2002/05/21 20:54:23 pete Exp pete $ */ void viewInMSIE() { strCmd = new StringBuffer(); // below is the line you'll have to edit if you are not using Mac OS X // or if Internet Explorer is installed somewhere else... strCmd.append("open -a '/Applications/Internet Explorer.app'"); strCmd.append(" "); strCmd.append('"'); strCmd.append(buffer.getPath()); strCmd.append('"'); runInSystemShell(view, strCmd.toString()); } viewInMSIE(); /* end */