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