/* * OmniWeb.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 OmniWeb. * 2. That OmniWeb is installed in it's default location. * * * 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: OmniWeb.bsh,v 1.2 2002/05/21 20:56:53 pete Exp pete $ */ void viewInOmniWeb() { strCmd = new StringBuffer(); // below is the line you'll have to edit if you are not using Mac OS X // or if OmniWeb is installed somewhere else... strCmd.append("open -a /Applications/OmniWeb.app"); strCmd.append(" "); strCmd.append('"'); strCmd.append(buffer.getPath()); strCmd.append('"'); runInSystemShell(view, strCmd.toString()); } viewInOmniWeb(); /* end */