@All I want to open on the boot necessary wb window in the path I need, do we have for that some default tool coming with OS, or maybe some workbench prefs somewhere?
I.e. something like "wbopendir work:aaa/bbb" and it will open me "bbb" directory.
@all Be it WBRUN, or "Rx address workbench", in both cases if I put that string at the end of user-startup, most of the time window, not shops. With WBRun silently, with RX saying "host-environment not found", all of which probably means, that they running faster than workbench finished loading.
So the question is: how to run it from user-startup, without busy loading, but "wait when wb appears". Or maybe they're just some other way, without involving waiting when WB done loading.
You could do it the complicated way and start a rexx script AFTER wb has started, create a port within it and check for that port availability in your startup-sequence script. That way your startup script will only continue AFTER the port/script is available and thus AFTER wb has started.
@all I need it not be busylooping, and appears on WB right after WB is shown. Not sure if any "wait..." can be good there.
For now, I have about 5-6 manually loaded binaries from user-startup, all of them appear at the same time when the system loads up visually, but not the workbench window I want to be opened. If I will use "wait/waitforport" it will mean visually everything loads up, and then, after some seconds window opens.
WaitForPort does what you need... you should know this as an Amiga veteran
ahaha :) Sounds like "you should know this as you are Amiga retard" :)
No, i didn't know all that amigados stuff deeply, im mostly unix/win32 kind of user who know some bits. All my AmigaDOS and ARexx usage is minimal, and limited to privitive basics.
So.. How can i run from user-startup all this stuff, so it will be like:
run >NIL: somecommand1 run >NIL: somecommand1 run >NIL: rx 'address workbench open window "work:"' run >NIL: somecommand3 run >NIL: somecommand4
Where exactly put waitforport, so it will not busy anything, and my work: window will opens up once workbench is showed up ?
make the icon poject icon. use iconx as tooltype for the script. select wbstartup add tooltype dontwait or something like that (check the other icons in wbstartup), or else wb expects the script to complete quickly.
(NutsAboutAmiga)
Basilisk II for AmigaOS4 AmigaInputAnywhere Excalibur and other tools and apps.
@all No no, no separate scripts plz :) I can make of course with separate scripts all sorts of stuff, put it to wbstartup, and so on. But the point is to make it exactly from user-startup, to avoid any additional mess in the system. I have already enough all sort of scripts everywhere to forget it all when will someday reinstall the system.
I even can just run just "WBRUN" from startup-sequence, right before LoadWB, and it strangely works. Just want to do it exactly from user-startup, exactly in the same block where I have all other binaries run on startup, so it all will be clean.
@all Interesting that it even not works from user-startup even with WAITFORPORT.
I even tried that:
WAITFORPORT WORKBENCH Run >NIL: wbrun "work:"
Now, when I reboot, it has 10 seconds wait without opened the workbench (as expected), and then WbRun says to me "Process Workbench not found, run LoadWB first".
Wtf? Shouldn't it work from user-startup as LoadWB already called from startup-sequence?
On my system, the user-startup script is called BEFORE LoadWB is executed.
Simon
Comments made in any post are personal opinion, and are in no-way representative of any commercial entity unless specifically stated as such. ---- http://codebench.co.uk
So, that means I can't put anything which needs "loadwb" be in into user-startup, not RX scripts, not WBRUN. Quite bad to put it to startup-sequence then... Seems no way then :(