browse tool from openstack script not working

Want to talk about something that isn't covered by another category?

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

mwieder
VIP Livecode Opensource Backer
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

Post by mwieder » Fri Dec 16, 2011 7:44 pm

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.

Randy Hengst
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 154
Joined: Thu Jun 29, 2006 4:16 pm

Re: browse tool from openstack script not working

Post by Randy Hengst » Sat Dec 17, 2011 3:39 am

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

mwieder
VIP Livecode Opensource Backer
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

Post by mwieder » Sun Dec 18, 2011 10:53 pm

It works here LC 5.0.2 and OSX 10.6.8. What are you expecting to happen?

Randy Hengst
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 154
Joined: Thu Jun 29, 2006 4:16 pm

Re: browse tool from openstack script not working

Post by Randy Hengst » Mon Dec 19, 2011 12:53 am

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

mwieder
VIP Livecode Opensource Backer
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

Post by mwieder » Mon Dec 19, 2011 1:29 am

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.

Randy Hengst
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 154
Joined: Thu Jun 29, 2006 4:16 pm

Re: browse tool from openstack script not working

Post by Randy Hengst » Mon Dec 19, 2011 2:28 am

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

joeMich
Posts: 20
Joined: Tue Jun 06, 2006 8:24 am

Re: browse tool from openstack script not working

Post by joeMich » Mon Dec 19, 2011 1:44 pm

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

sturgis
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1685
Joined: Sat Feb 28, 2009 11:49 pm

Re: browse tool from openstack script not working

Post by sturgis » Mon Dec 19, 2011 5:39 pm

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

sturgis
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1685
Joined: Sat Feb 28, 2009 11:49 pm

Re: browse tool from openstack script not working

Post by sturgis » Mon Dec 19, 2011 5:41 pm

Actually changed it to "send browsetool to me in 100 milliseconds" with browsetool having "choose browse tool" of course.

joeMich
Posts: 20
Joined: Tue Jun 06, 2006 8:24 am

Re: browse tool from openstack script not working

Post by joeMich » Mon Dec 19, 2011 6:43 pm

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

Post Reply

Return to “Off-Topic”