Re: "Cascading" Object-Behaviors

2017-08-02 Thread Monte Goulding via use-livecode

> On 3 Aug 2017, at 6:44 am, Brian Milby via use-livecode 
>  wrote:
> 
> So is the BOM causing the issue with detection of the URL being a script
> only stack or is it in the function that actually reads in the file?
> Trying to wrap my head around how the go stack works (still looking at
> code).

Go stack tries to work out whether it has been passed a blob that is the 
content of a stack file. Script only stacks may have a BOM but the current 
detection doesn’t handle that.

Cheers

Monte
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: "Cascading" Object-Behaviors

2017-08-02 Thread Brian Milby via use-livecode
So is the BOM causing the issue with detection of the URL being a script
only stack or is it in the function that actually reads in the file?
Trying to wrap my head around how the go stack works (still looking at
code).

On Wed, Aug 2, 2017 at 8:02 AM, Brian Milby  wrote:

> I just tried it on Mac/Win and it works in LC9DP8 that way for me.
>
> On Tue, Aug 1, 2017 at 10:34 PM, Monte Goulding via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
>> Use the following url:
>>
>> > 1fa6e77e514c7e3ccae150af5fd856199719e1/tools/Scriptifier.livecodescript <
>> https://raw.githubusercontent.com/montegoulding/livecode/81
>> 1fa6e77e514c7e3ccae150af5fd856199719e1/tools/Scriptifier.livecodescript>>
>>
>> I’d like to say you can go stack url with this url but you can’t because
>> it’s broken for script only stacks although from the looks of things go
>> stack byte 4 to -1 of url might work in LC 9…
>>
>> http://quality.livecode.com/show_bug.cgi?id=18998 <
>> http://quality.livecode.com/show_bug.cgi?id=18998>
>>
>> Cheers
>>
>> Monte
>>
>> > On 2 Aug 2017, at 1:25 pm, Sannyasin Brahmanathaswami via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>> >
>> > "GIT DUMMY" here..
>> >
>> >
>> > How does one get the script without downloading the entire LC
>> repository?
>> >
>> > All I can see is to copy it.. which works I guess you have to then
>> remove all the leading "+" signs and save to your plugins folder?
>> >
>> > BR
>> >
>> >
>> >
>> >
>> > On 7/30/17, 10:28 AM, "use-livecode on behalf of Monte Goulding via
>> use-livecode" > use-livecode@lists.runrev.com> wrote:
>> >
>> >I have implemented a scriptifier utility script if you are
>> interested here https://github.com/livecode/livecode/pull/5600<
>> https://github.com/livecode/livecode/pull/5600>
>> >
>> > ___
>> > use-livecode mailing list
>> > use-livecode@lists.runrev.com
>> > Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> > http://lists.runrev.com/mailman/listinfo/use-livecode
>>
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>
>
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: "Cascading" Object-Behaviors

2017-08-02 Thread Brian Milby via use-livecode
I just tried it on Mac/Win and it works in LC9DP8 that way for me.

On Tue, Aug 1, 2017 at 10:34 PM, Monte Goulding via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Use the following url:
>
>  811fa6e77e514c7e3ccae150af5fd856199719e1/tools/Scriptifier.livecodescript
>  811fa6e77e514c7e3ccae150af5fd856199719e1/tools/Scriptifier.livecodescript
> >>
>
> I’d like to say you can go stack url with this url but you can’t because
> it’s broken for script only stacks although from the looks of things go
> stack byte 4 to -1 of url might work in LC 9…
>
> http://quality.livecode.com/show_bug.cgi?id=18998 <
> http://quality.livecode.com/show_bug.cgi?id=18998>
>
> Cheers
>
> Monte
>
> > On 2 Aug 2017, at 1:25 pm, Sannyasin Brahmanathaswami via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> > "GIT DUMMY" here..
> >
> >
> > How does one get the script without downloading the entire LC repository?
> >
> > All I can see is to copy it.. which works I guess you have to then
> remove all the leading "+" signs and save to your plugins folder?
> >
> > BR
> >
> >
> >
> >
> > On 7/30/17, 10:28 AM, "use-livecode on behalf of Monte Goulding via
> use-livecode"  use-livecode@lists.runrev.com> wrote:
> >
> >I have implemented a scriptifier utility script if you are interested
> here https://github.com/livecode/livecode/pull/5600 github.com/livecode/livecode/pull/5600>
> >
> > ___
> > use-livecode mailing list
> > use-livecode@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: "Cascading" Object-Behaviors

2017-08-01 Thread Monte Goulding via use-livecode
Use the following url:

>

I’d like to say you can go stack url with this url but you can’t because it’s 
broken for script only stacks although from the looks of things go stack byte 4 
to -1 of url might work in LC 9…

http://quality.livecode.com/show_bug.cgi?id=18998 


Cheers

Monte

> On 2 Aug 2017, at 1:25 pm, Sannyasin Brahmanathaswami via use-livecode 
>  wrote:
> 
> "GIT DUMMY" here..
> 
> 
> How does one get the script without downloading the entire LC repository?
> 
> All I can see is to copy it.. which works I guess you have to then remove all 
> the leading "+" signs and save to your plugins folder?
> 
> BR
> 
> 
> 
> 
> On 7/30/17, 10:28 AM, "use-livecode on behalf of Monte Goulding via 
> use-livecode"  use-livecode@lists.runrev.com> wrote:
> 
>I have implemented a scriptifier utility script if you are interested here 
> https://github.com/livecode/livecode/pull/5600
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: "Cascading" Object-Behaviors

2017-08-01 Thread Sannyasin Brahmanathaswami via use-livecode
"GIT DUMMY" here..


How does one get the script without downloading the entire LC repository?

All I can see is to copy it.. which works I guess you have to then remove all 
the leading "+" signs and save to your plugins folder?

BR


 

On 7/30/17, 10:28 AM, "use-livecode on behalf of Monte Goulding via 
use-livecode"  wrote:

I have implemented a scriptifier utility script if you are interested here 
https://github.com/livecode/livecode/pull/5600

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: "Cascading" Object-Behaviors

2017-08-01 Thread AndyP via use-livecode
Monte, great tool. thanks...saves a lot of time.



-
Andy Piddock 


My software never has bugs. It just develops random features. 

TinyIDE a Free alternative minimalist IDE Plugin for LiveCode
TinyIDE 


Script editor Themer for LC http://2108.co.uk  

PointandSee is a FREE simple but full featured under cursor colour picker / 
finder.
http://www.pointandsee.co.uk  - made with LiveCode
--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Cascading-Object-Behaviors-tp4717715p4717809.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: "Cascading" Object-Behaviors

2017-08-01 Thread Monte Goulding via use-livecode

> On 1 Aug 2017, at 7:00 am, Bob Sneidar via use-livecode 
>  wrote:
> 
> OK got it. I take it this is supposed to be a script only stack? That is how 
> I saved it. 

Yes it will generate a very simple UI when you open it

Cheers

Monte
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: "Cascading" Object-Behaviors

2017-07-31 Thread Bob Sneidar via use-livecode
OK got it. I take it this is supposed to be a script only stack? That is how I 
saved it. 

Bob S


> On Jul 31, 2017, at 13:20 , Monte Goulding via use-livecode 
>  wrote:
> 
> The url got messed up somehow there try:


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: "Cascading" Object-Behaviors

2017-07-31 Thread Monte Goulding via use-livecode
The url got messed up somehow there try:
https://github.com/livecode/livecode/pull/5600 


> On 1 Aug 2017, at 6:12 am, Bob Sneidar via use-livecode 
>  wrote:
> 
> I click the link, I go there I log in I cannot see anywhere where there is a 
> file to download or code to copy. 
> 
> Bob S
> 
> 
>> On Jul 30, 2017, at 13:27 , Monte Goulding via use-livecode 
>>  wrote:
>> 
>> I have implemented a scriptifier utility script if you are interested here 
>> https://github.com/livecode/livecode/pull/5600
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: "Cascading" Object-Behaviors

2017-07-31 Thread Bob Sneidar via use-livecode
I click the link, I go there I log in I cannot see anywhere where there is a 
file to download or code to copy. 

Bob S


> On Jul 30, 2017, at 13:27 , Monte Goulding via use-livecode 
>  wrote:
> 
> I have implemented a scriptifier utility script if you are interested here 
> https://github.com/livecode/livecode/pull/5600


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: "Cascading" Object-Behaviors

2017-07-30 Thread Sannyasin Brahmanathaswami via use-livecode
Yes, better to leave in place..  i.e. behavior buttons with no scripts, now 
assigned behavior to external file.

We are using a JSON file on disk that we read in to set the stack files on 
start up, because with a team, things get crazy if you have this in the binary.

One Caveat 

the PB does not show that  objects with the assigned behavior to a button with 
no script… has any code … it shows 
 0 lines of code, when in fact the behavior assigned to the button which is 
assigned to that object *is*  in the msg path.

Other caveats: I am getting "bitten" by ambiguity of "me"  in scripts.  but 
that is a different subject.   for mobile, timin is everything and we are 
frequently needing to allow 200 milliseconds, 500 etc before calling some other 
handler, while the UI gets updated. So typically the events we want to fire are 
in the same "library" but you can do 

Send to me  

you have to declare "this stack" to "stack "suchAndSuch" (which is the actual 
name of the file with these handlers) 




Svasti Astu, Be Well 
Brahmanathaswami

www.himalayanacademy.com

 

On 7/30/17, 10:28 AM, "use-livecode on behalf of Monte Goulding via 
use-livecode"  wrote:

>
>On 31 Jul 2017, at 3:50 am, Sannyasin Brahmanathaswami via use-livecode 
 wrote:
>"Entralled with external scripts and GIT are We" says Yoda

I have implemented a scriptifier utility script if you are interested here 
https://github.com/livecode/livecode/pull/5600

It parses all objects in a stack looking for non-trivial scripts then 
generates a unique name based on object hierarchy and saves the script only 
stacks in a folder with the same name as the stack filename and sets the 
stackFiles appropriately. We have used it on some stacks in the IDE (the 
installer and the IDE startup stack) and have only found one side effect so far 
in an old script that used idle. Idle is only sent to objects that implement it 
and is not detected in their behaviors. For simplicity the script ignores any 
objects that already have behaviors as if you want a behavior hierarchy of 
script only stacks you need to script that when they are loaded.
>It this bad practice? Of course it is a trivial matter to make a direct 
assignment to the external file since it is in the stack files

My scriptifier (being a bit dumb about such matters) would do something 
similar when it encounters an object that is a behavior button used elsewhere. 
The behavior button scriipt will be exported and the hierarchy will be 
established. We haven’t noticed any issues with this although it probably 
wouldn’t take long to tweak the scriptifier to delete the button and set the 
behavior directly that would impact resource resolution like finding icons so 
it’s better to leave it in place. Such things are better done manually if 
necessary.

Cheers

Monte

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: "Cascading" Object-Behaviors

2017-07-30 Thread Monte Goulding via use-livecode

> On 31 Jul 2017, at 3:50 am, Sannyasin Brahmanathaswami via use-livecode 
>  wrote:
> 
> "Entralled with external scripts and GIT are We" says Yoda

I have implemented a scriptifier utility script if you are interested here 
https://github.com/livecode/livecode/pull/5600 


It parses all objects in a stack looking for non-trivial scripts then generates 
a unique name based on object hierarchy and saves the script only stacks in a 
folder with the same name as the stack filename and sets the stackFiles 
appropriately. We have used it on some stacks in the IDE (the installer and the 
IDE startup stack) and have only found one side effect so far in an old script 
that used idle. Idle is only sent to objects that implement it and is not 
detected in their behaviors. For simplicity the script ignores any objects that 
already have behaviors as if you want a behavior hierarchy of script only 
stacks you need to script that when they are loaded.
> 
> It this bad practice? Of course it is a trivial matter to make a direct 
> assignment to the external file since it is in the stack files

My scriptifier (being a bit dumb about such matters) would do something similar 
when it encounters an object that is a behavior button used elsewhere. The 
behavior button scriipt will be exported and the hierarchy will be established. 
We haven’t noticed any issues with this although it probably wouldn’t take long 
to tweak the scriptifier to delete the button and set the behavior directly 
that would impact resource resolution like finding icons so it’s better to 
leave it in place. Such things are better done manually if necessary.

Cheers

Monte
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode