When I changed Johan's test stack for the proper syntax the test stack performed as expected in 5.0.2. YMMV.I know, the tool is "browse tool", but this is NOT the problem.
browse tool from openstack script not working
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- VIP Livecode Opensource Backer
- Posts: 3581
- Joined: Mon Jan 22, 2007 7:36 am
- Location: Berkeley, CA, US
- Contact:
Re: browse tool from openstack script not working
Mark-
-
- VIP Livecode Opensource Backer
- Posts: 154
- Joined: Thu Jun 29, 2006 4:16 pm
Re: browse tool from openstack script not working
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
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
-
- VIP Livecode Opensource Backer
- Posts: 3581
- Joined: Mon Jan 22, 2007 7:36 am
- Location: Berkeley, CA, US
- Contact:
Re: browse tool from openstack script not working
It works here LC 5.0.2 and OSX 10.6.8. What are you expecting to happen?
-
- VIP Livecode Opensource Backer
- Posts: 154
- Joined: Thu Jun 29, 2006 4:16 pm
Re: browse tool from openstack script not working
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
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
-
- VIP Livecode Opensource Backer
- Posts: 3581
- Joined: Mon Jan 22, 2007 7:36 am
- Location: Berkeley, CA, US
- Contact:
Re: browse tool from openstack script not working
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.
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.
-
- VIP Livecode Opensource Backer
- Posts: 154
- Joined: Thu Jun 29, 2006 4:16 pm
Re: browse tool from openstack script not working
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
be well,
randy
Re: browse tool from openstack script not working
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
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
As a workaround of this bug you might create a handler that does the browse tool selection and then during startup
I did this in openstack using 5.0.2 and it seems to work fine.
Code: Select all
-- most likely 100 milliseconds is way too long, so massage it as needed
send "myhandlerthatsetsthebrowsetool" to stack "stackname" in 100 milliseconds
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
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
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
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