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:
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:
Edit the 'open' command, and check the 'Use DDE' checkbox so you get a window something like this:
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:
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:
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
Howto: Make scriptor open files correctly
Moderator: Moderators
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
Re: Howto: Make scriptor open files correctly
library to scripts directory (win7), in scriptor file>open... Profit?
Re: Howto: Make scriptor open files correctly
workarounds != solutions
Re: Howto: Make scriptor open files correctly
well you didnt read this its a solution.overkill wrote:workarounds != solutions
Re: Howto: Make scriptor open files correctly
Is it so hard to figure out he's replying to the post immediately above his?d_b wrote:well you didnt read this its a solution.overkill wrote:workarounds != solutions
Re: Howto: Make scriptor open files correctly
all images dead.
Scriptor tool could just have its on wiki page, if desired.
cob/bos scripts are basically not relevant anymore.
Scriptor tool could just have its on wiki page, if desired.
cob/bos scripts are basically not relevant anymore.