Page 1 of 1

Howto: Make scriptor open files correctly

Posted: 19 Dec 2009, 17:23
by Gnomre
Simply telling windows to open .bos files in Scriptor doesn't work right (at least, it never has for me). When set up that way, you'll commonly get a window that looks something like this:

Image

And each successive bos file you open comes up in a new scriptor process instead of the same one. Scriptor needs to use dde to properly open files on double click, which is why it's fucking up. Fixing it varies on your OS, though:

Windows XP (bear with me, I'm using 7 now. I'll have Flozi correct me if necessary)
In an explorer window, go to Tools->Folder Options. Click the File Types tab. Find bos in the list and edit it. You should get a window looking vaguely like this:

Image

Edit the 'open' command, and check the 'Use DDE' checkbox so you get a window something like this:

Image

Just make sure the fields are filled out as such:
Application: "C:\Path\To\Scriptor.exe" /dde
DDE Message: [open("%1")]
Leave all the other DDE fields blank.

If you did it right, once you click OK and apply those settings it should work properly now.



Windows 7 (and probably Vista)
In their infinite wisdom, Microsoft removed the part of the file type editor used above from Vista and 7, so you're going to have to go registry diving here.

Go ahead and create a broken file association here so we can edit. Double click any bos file, choose scriptor.exe to always open it, and watch it screw up.

Open regedit and first browse to:
HKEY_CLASSES_ROOT\.bos
Make sure (Default) is set to bos_auto_file

Now, go to:
HKEY_CLASSES_ROOT\bos_auto_file
Expand it until it looks something like this:
Image

Edit the (Default) field to read:
"C:\Games\Spring\Tools\Scriptor\Scriptor.exe" /dde
(change the path as necessary)

Now, right click the "open" folder in the left tree view and go to New->Key. Name the key ddeexec. Change its (Default) value to the following:
[open("%1")]
It should look like this:
Image

Assuming you did it right, it should work correctly now.

Hopefully this will help people in the future. At the very least, it'll help me, since I run into this problem every time I reinstall windows, and 7 was certainly a new adventure in making it work right

Re: Howto: Make scriptor open files correctly

Posted: 19 Dec 2009, 22:35
by Forboding Angel
library to scripts directory (win7), in scriptor file>open... Profit?

Re: Howto: Make scriptor open files correctly

Posted: 19 Dec 2009, 23:09
by overkill
workarounds != solutions

Re: Howto: Make scriptor open files correctly

Posted: 20 Dec 2009, 19:18
by Tribulex
overkill wrote:workarounds != solutions
well you didnt read this its a solution.

Re: Howto: Make scriptor open files correctly

Posted: 20 Dec 2009, 20:16
by lurker
d_b wrote:
overkill wrote:workarounds != solutions
well you didnt read this its a solution.
Is it so hard to figure out he's replying to the post immediately above his?

Re: Howto: Make scriptor open files correctly

Posted: 13 Apr 2015, 13:32
by 8611
all images dead.
Scriptor tool could just have its on wiki page, if desired.
cob/bos scripts are basically not relevant anymore.