jEdit Community - Resources for users of the jEdit Text Editor
Project Plugin: Preview in Browser Configuration
Submitted by Anonymous on Saturday, 10 April, 2004 - 04:34
Hi-

I'm running JEdit pre11 on MacOSX.3.

I can't seem to get the Project plugin 'Preview in Browser' menu option to work.

I've tried setting the browser path to all sorts of things, including:
open (a generic 'open this file' command)
open -a /Applications/Firefox.app (a request to open a file with an application)
/Applications/Firefox.app
/usr/bin/open (the full path to open)

I keep getting 'Error starting process: Application not found'

Has anyone got this to work on MacOS 10? Any suggestions?

Thanks in advance,

Eric Everman
Comment viewing options
Select your preferred way to display the comments and click 'Save settings' to activate your changes.
Console plugin problems?
by Anonymous on Sat, 10/04/2004 - 16:44
I have not been able to run the Console Plugin on MAC OSx. i tried to write a macro to do a Preivew in Browser, but i can;t even get te console to run period. My guess is that this is where the problem lies. any thoughts from someone who knows what they are talking about?

wes.
 
10 mins of playing around.... i got a script for ya.
by Anonymous on Sat, 10/04/2004 - 17:16
This script will load the Current Buffer, into Safari. You could replace Safari with "FireFox" or whatever, Save this as "Preview_in_Browser.bsh" in yr Macros folder, then add it to the toolbar.

runCommandInConsole(view,"System","open -a Safari \"" + buffer.getPath() + "\"");
view.getDockableWindowManager().toggleDockableWindow("console");


enjoy.
wes.
 
Thanks
by Anonymous on Sat, 10/04/2004 - 20:38
That worked great - Thanks!

I *still* would like to get this working via the project plugin, however. The bonus of the project plugin is that it allows you to see all the files in your project and pop one open in the browser w/o having to have it open in JEdit. Or at least that's what it might do...

Thanks again Wes - your script is promanently embeded in my toolbar with the "Run to buffer" icon.

-Eric E.
User login
Browse archives
« April 2024  
MoTuWeThFrSaSu
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
 
Poll
Are you interested in language packs for jEdit?
Yes, and I could help maintain translations
26%
Yes, I'd like to have translations
32%
Indifferent
35%
No, that'd be bad (please comment)
7%
Total votes: 1093
Syndication
file   ver   dls
German Localization light   4.4.2.1   82348
Context Free Art (*.cfdg)   0.31   46055
JBuilder scheme   .001   18495
BBEdit scheme   1.0   18116
ColdFusion scheme   1.0   18024
R Edit Mode - extensive version   0.1   17473
Advanced HTML edit mode   1.0   16206
Matlab Edit Mode   1.0   16068
jEdit XP icons   1.0   15229
XP icons for jEdit   1.1   14293