Page 1 of 1
cgoban as standard sgf-viewer
Posted: Mon Feb 11, 2013 12:24 pm
by SoDesuNe
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 =)
Re: cgoban as standard sgf-viewer
Posted: Mon Feb 11, 2013 1:37 pm
by lobotommy
Try to remove all Java from your system. Then reinstall it - maybe it will work. No guarantee.
Re: cgoban as standard sgf-viewer
Posted: Mon Feb 11, 2013 4:39 pm
by xed_over
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.
Re: cgoban as standard sgf-viewer
Posted: Mon Feb 11, 2013 4:55 pm
by Bonobo
Re: cgoban as standard sgf-viewer
Posted: Tue Feb 12, 2013 3:02 am
by SoDesuNe
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
Re: cgoban as standard sgf-viewer
Posted: Tue Feb 12, 2013 3:46 am
by SoDesuNe
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: Select all
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.