When I click on a file (say on the desktop) that is known to use BB (e.g. csv file previously specified to use BB)
BB is opened but it does not display the file.
What is needed so BB will display the file when the file is clicked?
-Doug
Getting BB to display a clicked file
- DGDanforth
- Posts: 1061
- Joined: Tue Sep 17, 2013 1:16 am
- Location: Palo Alto, California, USA
- Contact:
Re: Getting BB to display a clicked file
1. Open -> File -> System/Mod/Config.odcDGDanforth wrote:What is needed so BB will display the file when the file is clicked?
2. Insert into PROCEDURE Setup* the line:
Converters.Register("HostTextConv.ImportText", "HostTextConv.ExportText", "TextViews.View", "csv", {Converters.importAll});
3. Compile this module
4. Restart BlackBox
Now it should display the csv file inside a window of BlackBox.
This is a candidate for the famos cookbook.
- Helmut
- DGDanforth
- Posts: 1061
- Joined: Tue Sep 17, 2013 1:16 am
- Location: Palo Alto, California, USA
- Contact:
Re: Getting BB to display a clicked file
Nope, doesn't work.Zinn wrote:1. Open -> File -> System/Mod/Config.odcDGDanforth wrote:What is needed so BB will display the file when the file is clicked?
2. Insert into PROCEDURE Setup* the line:
Converters.Register("HostTextConv.ImportText", "HostTextConv.ExportText", "TextViews.View", "csv", {Converters.importAll});
3. Compile this module
4. Restart BlackBox
Now it should display the csv file inside a window of BlackBox.
This is a candidate for the famos cookbook.
- Helmut
.csv is correctly associated with BB.
But BB still does not open the file.
I do not know how to associate the file with my local BB which has its own config.mod.
I suspect (and can see when opened) that BB is running the server version and not
my version and hence it is using the wrong config file.
How do I associate my local BB that has
Code: Select all
"C:\Program Files\BlackBox Component Builder 1.6\BlackBox.exe" /Use C:\Dgd\BlackBox16
Re: Getting BB to display a clicked file
add "%1" at the end:DGDanforth wrote:How do I associate my local BB that has
Code: Select all
"C:\Program Files\BlackBox Component Builder 1.6\BlackBox.exe" /Use C:\Dgd\BlackBox16
with the extension .csv?
Code: Select all
start "C:\Program Files\BlackBox Component Builder 1.6\BlackBox.exe" /Use C:\Dgd\BlackBox16 %1
- DGDanforth
- Posts: 1061
- Joined: Tue Sep 17, 2013 1:16 am
- Location: Palo Alto, California, USA
- Contact:
Re: Getting BB to display a clicked file
Added %1 but that made no difference.luowy wrote:add "%1" at the end:DGDanforth wrote:How do I associate my local BB that has
Code: Select all
"C:\Program Files\BlackBox Component Builder 1.6\BlackBox.exe" /Use C:\Dgd\BlackBox16
with the extension .csv?Code: Select all
start "C:\Program Files\BlackBox Component Builder 1.6\BlackBox.exe" /Use C:\Dgd\BlackBox16 %1
Let me restate the issue.
I have a file on the desktop, business-registry.csv
The icon associated with that file is a BB document icon.
When I click on that file the BlackBox server is opened but no file is shown.
Exit.
Do properties of business-registry.csv
I see BlackBox as the application to be run.
I just changed that to point to the shortcut which runs my version of BlackBox,
BUT when the file is clicked I get the message,
"C:\Documents and Settings\Owner\Desktop\business-registry.csv is not a valid Win32 application"
What else is necessary to get this to work?
Re: Getting BB to display a clicked file
1,make a bat file bb.bat in your client dir(C:\Dgd\BlackBox16) with this line:DGDanforth wrote:What else is necessary to get this to work?
Code: Select all
start "C:\Program Files\BlackBox Component Builder 1.6\BlackBox.exe" /Use C:\Dgd\BlackBox16 %1
3,double click your cvs file,if not opened correctly,then reset default app:
1)setup cvs file's default open app with blackbox,and then
2)setup cvs file's default open app with bb.bat
the key is that you had to setup the file property with deferrent app several times until the system recognize it!
it can work in my pc.
- DGDanforth
- Posts: 1061
- Joined: Tue Sep 17, 2013 1:16 am
- Location: Palo Alto, California, USA
- Contact:
Re: Getting BB to display a clicked file
luowy,luowy wrote:1,make a bat file bb.bat in your client dir(C:\Dgd\BlackBox16) with this line:DGDanforth wrote:What else is necessary to get this to work?2,setup cvs file's default open app with bb.bat.Code: Select all
start "C:\Program Files\BlackBox Component Builder 1.6\BlackBox.exe" /Use C:\Dgd\BlackBox16 %1
3,double click your cvs file,if not opened correctly,then reset default app:
1)setup cvs file's default open app with blackbox,and then
2)setup cvs file's default open app with bb.bat
the key is that you had to setup the file property with deferrent app several times until the system recognize it!
it can work in my pc.
Thanks for your help. That works!