Page 2 of 2

Re: browse tool from openstack script not working

Posted: Fri Dec 16, 2011 7:44 pm
by mwieder
Mark-
I know, the tool is "browse tool", but this is NOT the problem.
When I changed Johan's test stack for the proper syntax the test stack performed as expected in 5.0.2. YMMV.

Re: browse tool from openstack script not working

Posted: Sat Dec 17, 2011 3:39 am
by Randy Hengst
I'm using OSX 6.8

Using LC 5.0.2 the following does not work... the browse tool is not selected.
on openStack
choose browse tool
end openStack

Using LC 5.0.1 it does work.

I tried it in a brand new stack where this is the only code entered.

Is there an error in my syntax?

be well,
randy

Re: browse tool from openstack script not working

Posted: Sun Dec 18, 2011 10:53 pm
by mwieder
It works here LC 5.0.2 and OSX 10.6.8. What are you expecting to happen?

Re: browse tool from openstack script not working

Posted: Mon Dec 19, 2011 12:53 am
by Randy Hengst
I expect the browse tool to be selected... it works just fine using LC 5.0.1

However, the same script does not select the browse tool in LC 5.0.2 .... unless LC is already open. If I open LC itself using the app (drag stack to LC icon or double-click stack) with this code, the browse tool is not selected... the edit tool remains selected. If LC 5.0.2 is already open, then code works just as I would expect.

be well,
randy

Re: browse tool from openstack script not working

Posted: Mon Dec 19, 2011 1:29 am
by mwieder
Aha!

There were previous problems with double-clicking to open a stack. The openStack command works as expected inside the IDE, either from the messagebox or from the File menu. Looks like it might be an OS thing with the openStack command firing too soon and then the IDE prefs taking over or something like that. Might be the revTools stack forcing an edit tool when it starts up after the mainstack openStack command has already been executed.

Re: browse tool from openstack script not working

Posted: Mon Dec 19, 2011 2:28 am
by Randy Hengst
Well, it looks like the problem is back... I just checked 4.6.1 and 4.6.4 and the script works just fine in those versions, too.

be well,
randy

Re: browse tool from openstack script not working

Posted: Mon Dec 19, 2011 1:44 pm
by joeMich
I'm sort of glad that I'm not the only one experiencing this behaviour.
Guess it must be a bug then...

I have never had this problem before the 5.0.2 update.

For now I can live with invoking the browse tool with the keyboard (cmd+9) - but I shurely would like it to be fixed in one of the next updates.

Randy: Yes I can confirm that the openstack handler (with the choose browse tool command) works fine if LC is open already!!!

best regards
Johan

Re: browse tool from openstack script not working

Posted: Mon Dec 19, 2011 5:39 pm
by sturgis
As a workaround of this bug you might create a handler that does the browse tool selection and then during startup

Code: Select all

-- most likely 100 milliseconds is way too long, so massage it as needed
send "myhandlerthatsetsthebrowsetool" to stack "stackname" in 100 milliseconds
I did this in openstack using 5.0.2 and it seems to work fine.
joeMich wrote:I'm sort of glad that I'm not the only one experiencing this behaviour.
Guess it must be a bug then...

I have never had this problem before the 5.0.2 update.

For now I can live with invoking the browse tool with the keyboard (cmd+9) - but I shurely would like it to be fixed in one of the next updates.

Randy: Yes I can confirm that the openstack handler (with the choose browse tool command) works fine if LC is open already!!!

best regards
Johan

Re: browse tool from openstack script not working

Posted: Mon Dec 19, 2011 5:41 pm
by sturgis
Actually changed it to "send browsetool to me in 100 milliseconds" with browsetool having "choose browse tool" of course.

Re: browse tool from openstack script not working

Posted: Mon Dec 19, 2011 6:43 pm
by joeMich
ha ha - I "massaged" it down to 2 milliseconds and then it worked!
thanks for pointing it out!

But I still think it must be a bug, that it doesn't work in the first instance...

best regards
Johan