Life In 19x19
http://prod.lifein19x19.com/

cgoban as standard sgf-viewer
http://prod.lifein19x19.com/viewtopic.php?f=24&t=7857
Page 1 of 1

Author:  SoDesuNe [ Mon Feb 11, 2013 12:24 pm ]
Post subject:  cgoban as standard sgf-viewer

Is it possible for cgoban 3 to open a sgf-file by double-clicking on it?

It somehow won't work for me. Java says something like the application couldn't start, "parsing" error in line 0 - it's in german originally, that's just my translation ^^ (Original: Anwendung kann nicht gestartet werden. Details -> Fehler: Startdatei konnte nicht geparst werden. Fehler in Zeile 0.)
I've set my cgoban shortcut as the standard application to open sgf-files.

Did I make a mistake and can I fix it? It's troublesome to always open up cgoban first and then click on edit sgf-file.

I'm thankful for any tips =)

Author:  lobotommy [ Mon Feb 11, 2013 1:37 pm ]
Post subject:  Re: cgoban as standard sgf-viewer

Try to remove all Java from your system. Then reinstall it - maybe it will work. No guarantee.

Author:  xed_over [ Mon Feb 11, 2013 4:39 pm ]
Post subject:  Re: cgoban as standard sgf-viewer

yes, its possible, but you have to write a wrapper script to do it. (I have it on my mac)

there are some old threads on here (or maybe GoDiscussions, I forget), that talk about how to do it for various OS. I'll search for them later when I have the time.

Author:  Bonobo [ Mon Feb 11, 2013 4:55 pm ]
Post subject:  Re: cgoban as standard sgf-viewer

here

Author:  SoDesuNe [ Tue Feb 12, 2013 3:02 am ]
Post subject:  Re: cgoban as standard sgf-viewer

Thank you!

But I guess this does not work for Win7? ^^ (For starters, I don't seem to have an "Automator" application)

I have the feeling, there should be something similiar possible using a batch-file but I sadly don't know how to code that :o

Author:  SoDesuNe [ Tue Feb 12, 2013 3:46 am ]
Post subject:  Re: cgoban as standard sgf-viewer

Ha ha ha, thanks internet, that wasn't too hard, really ^^

Create a bat-file (to do so, create a new text-file and then save as "all files" and with ".bat"). Copy and paste this line in it:
Code:
start %userprofile%\Desktop\Spiele\Go\CGoban3.lnk -nosplash -open %1


Obviously the path has to lead to your CGoban Shortcut. Save it.

Now right click on a sgf-file and choose the just created bat-file as the standard application. Enjoy : )

It's not a clean solution, though. If you double-click on the bat-file to open KGS you will get an error-message everytime since this code requieres to open something additional (%1 is a placeholder). But since I just wanted to double-click on a sgf-file to open cgoban, this works for me perfectly. You can still open KGS via the jnlp-file or your shortcut.

Page 1 of 1 All times are UTC - 8 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/