It is currently Mon Sep 01, 2025 12:10 pm

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
Offline
 Post subject: cgoban as standard sgf-viewer
Post #1 Posted: Mon Feb 11, 2013 12:24 pm 
Gosei
User avatar

Posts: 1810
Liked others: 490
Was liked: 365
Rank: KGS 1-dan
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 =)

_________________
My "guide" to become stronger in Go

Top
 Profile  
 
Offline
 Post subject: Re: cgoban as standard sgf-viewer
Post #2 Posted: Mon Feb 11, 2013 1:37 pm 
Lives in gote

Posts: 408
Location: Poland, Gliwice
Liked others: 127
Was liked: 94
Rank: EGF 3kyu
Universal go server handle: tommyray (1d/2d)
Try to remove all Java from your system. Then reinstall it - maybe it will work. No guarantee.

_________________
Tsumego/Tesuji apps for iPad, iPhone & Android devices:http://www.lifein19x19.com/forum/viewtopic.php?f=18&t=7511

Top
 Profile  
 
Offline
 Post subject: Re: cgoban as standard sgf-viewer
Post #3 Posted: Mon Feb 11, 2013 4:39 pm 
Oza

Posts: 2264
Liked others: 1180
Was liked: 553
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.


This post by xed_over was liked by: Bonobo
Top
 Profile  
 
Offline
 Post subject: Re: cgoban as standard sgf-viewer
Post #4 Posted: Mon Feb 11, 2013 4:55 pm 
Oza
User avatar

Posts: 2221
Location: Germany
Liked others: 8268
Was liked: 924
Rank: OGS 9k
OGS: trohde
Universal go server handle: trohde
here

_________________
“The only difference between me and a madman is that I’m not mad.” — Salvador Dali ★ Play a slooooow correspondence game with me on OGS? :)


This post by Bonobo was liked by: xed_over
Top
 Profile  
 
Offline
 Post subject: Re: cgoban as standard sgf-viewer
Post #5 Posted: Tue Feb 12, 2013 3:02 am 
Gosei
User avatar

Posts: 1810
Liked others: 490
Was liked: 365
Rank: KGS 1-dan
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

_________________
My "guide" to become stronger in Go

Top
 Profile  
 
Offline
 Post subject: Re: cgoban as standard sgf-viewer
Post #6 Posted: Tue Feb 12, 2013 3:46 am 
Gosei
User avatar

Posts: 1810
Liked others: 490
Was liked: 365
Rank: KGS 1-dan
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.

_________________
My "guide" to become stronger in Go


This post by SoDesuNe was liked by: xed_over
Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group