Re: stackfiles

2018-08-10 Thread Richard Gaskin via use-livecode
Bob Sneidar wrote: >> On Aug 9, 2018, at 15:51 , Richard Gaskin wrote: >> >> Besides, even if you had two stacks whose stackFiles had the same >> stack short name assigned to different stackFiles, one of them >> wouldn't work anyway because as soon as it tried

Re: stackfiles

2018-08-10 Thread Bob Sneidar via use-livecode
second stack tries to open it's "splash", LC simply goes to the "splash" the first stack already has open. The only conflict warning I got was when I set the stackfiles of stack "test1" to one copy of "splash", then attempted to do the same thing

Re: stackfiles

2018-08-09 Thread Richard Gaskin via use-livecode
Bob Sneidar wrote: > On Aug 9, 2018, at 11:45 , Richard Gaskin wrote: > Yes, the stackFiles property is every bit as global as any other use > of stack names. > > Not to belabor the point, but the stackfiles is a property of a STACK, > not a global system property. A stac

Re: stackfiles

2018-08-09 Thread Bob Sneidar via use-livecode
Not to belabor the point, but the stackfiles is a property of a STACK, not a global system property. It would be like setting the foo of stack "test1" to the filename of stack "splash", quitting LC, relaunching LC, opening stack "test1", then expecting to be abl

Re: stackfiles

2018-08-09 Thread Richard Gaskin via use-livecode
Bob Sneidar wrote: > How odd though. The stackfiles is acting like a global property. > Imagine I have 2 projects open, each referencing 2 different versions > of the same stack in different locations on the disk. Any attempt to > open that stack using it's short name might yiel

Re: stackfiles

2018-08-09 Thread Bob Sneidar via use-livecode
Should be: open stack tFullStackPath > On Aug 9, 2018, at 09:23 , Bob Sneidar via use-livecode > wrote: > > open tFullStackPath ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage y

Re: stackfiles

2018-08-09 Thread Bob Sneidar via use-livecode
The safe way then to do this would be: put the stackfiles of stack "test1" into tStackFiles -- or whatever your stack is named filter lines of tStackFiles with "splash*" -- or whatever your stack short name is put item 2 of tStackFiles into tFullStackPath open tFullStackPath

Re: stackfiles

2018-08-09 Thread Bob Sneidar via use-livecode
How odd though. The stackfiles is acting like a global property. Imagine I have 2 projects open, each referencing 2 different versions of the same stack in different locations on the disk. Any attempt to open that stack using it's short name might yield the wrong stack. I know you wil

Re: stackfiles

2018-08-09 Thread Bob Sneidar via use-livecode
Ah! I get it now. I tested this. 2 stacks, one with the stackfiles set to a third stack somewhere on disk. Second one with a button that opens the stack listed in the stackfiles of the first stack using it's short name. With both stacks open, Clicking the button opens the stack listed i

Re: stackfiles

2018-08-09 Thread Klaus major-k via use-livecode
Hi Richard, > Am 09.08.2018 um 17:20 schrieb Richard Gaskin via use-livecode > : > > Klaus major-k wrote: > ... > When a stack file is included among the stackfiles property of an open stack, > you should be able to address it by short name if you like. thank you, th

Re: stackfiles

2018-08-09 Thread Richard Gaskin via use-livecode
ot; In memory or not, you can refer to a stack by its filename: get the width of btn 1 of stack "/home/klaus/MyStack.livecode" When a stack file is included among the stackfiles property of an open stack, you should be able to address it by short name if you like. -- Richa

Re: stackfiles

2018-08-09 Thread Klaus major-k via use-livecode
t like the stack xyz scripts? > > If I understand you, then another stack can reference the stackfiles of xyz > by getting the stackfiles of stack xyz. Ok, that my be one solution to my questions. > But I cannot think that is what you meant. The stackfiles is a property of a > singl

Re: stackfiles

2018-08-09 Thread Bob Sneidar via use-livecode
> On Aug 9, 2018, at 08:07 , Klaus major-k via use-livecode > wrote: > > I mean if stack xyz has its stackfile property set, can other stack access > this property just like the stack xyz scripts? If I understand you, then another stack can reference the stackfiles of xyz

Re: stackfiles

2018-08-09 Thread Klaus major-k via use-livecode
Hi Bob, > Am 09.08.2018 um 17:03 schrieb Bob Sneidar via use-livecode > : > > I see, you are asking if the scripts of the stackfiles are inserted into the > message heirarchy? No. It can't work that way if you think about it. You > would never be able to include anothe

Re: stackfiles

2018-08-09 Thread Bob Sneidar via use-livecode
I see, you are asking if the scripts of the stackfiles are inserted into the message heirarchy? No. It can't work that way if you think about it. You would never be able to include another stack in a standalone without having every stack script of every stack in the message heirarchy. I

Re: stackfiles

2018-08-09 Thread Klaus major-k via use-livecode
yes, I know, this way it also lets other stacks us the "used" stacks external etc, but does this apply to STACKFILES, too? That was my question! > Bob S > >> On Aug 9, 2018, at 02:58 , Klaus major-k via use-livecode >> wrote: >> >> Hi friends, >>

Re: stackfiles

2018-08-09 Thread Bob Sneidar via use-livecode
, > > quick question: > When I "start using stack xyz" then all stack can access the scripts etc. > of stack xyz. Does this also apply to the stackfiles of stack xyz? > > Thanks in advance! > > > Best > > Klaus > -

stackfiles

2018-08-09 Thread Klaus major-k via use-livecode
Hi friends, quick question: When I "start using stack xyz" then all stack can access the scripts etc. of stack xyz. Does this also apply to the stackfiles of stack xyz? Thanks in advance! Best Klaus -- Klaus Major http://www.major-k.de kl...@

Re: Qustion abut "the stackfiles"

2018-03-28 Thread Bob Sneidar via use-livecode
be > > becomes > > lib_calendary > /users/brahma/documents/myapp/libraries/lib_calendar.livecodescript > > plus you are changing files from time to time, so the stackfiles is obsolete. > > We fixed this by starting w

Re: Qustion abut "the stackfiles"

2018-03-27 Thread William Prothero via use-livecode
Do you mean you store the stackfiles in a database, then load the locations with the splash screen? Bill > On Mar 27, 2018, at 2:52 PM, Sannyasin Brahmanathaswami via use-livecode > wrote: > > You the splash get "messed-up" from occasional resave. > > Don't

Re: Qustion abut "the stackfiles"

2018-03-27 Thread Sannyasin Brahmanathaswami via use-livecode
myapp/libraries/lib_calendar.livecodescript plus you are changing files from time to time, so the stackfiles is obsolete. We fixed this by starting with json files, which then sets the splash stackFiles on stack start up On 3/27/18, 11:13 AM, "use-livecode on behalf of William Prothero via

Re: Qustion abut "the stackfiles"

2018-03-27 Thread Bob Sneidar via use-livecode
k. I am using “the > stackfiles” of the splash stack to get the relative paths of the various > stacks in the resources folder. I’m on LC 9.0.0(rc2), on Mac OS 10.12.3 > > What I’m wondering is if there are any “gotchas” with using this method to > get the relative paths to the

Qustion abut "the stackfiles"

2018-03-27 Thread William Prothero via use-livecode
Folks: I’m setting up an application with a splash stack and lots of other stacks and libraries that are loaded by the splash stack. I am using “the stackfiles” of the splash stack to get the relative paths of the various stacks in the resources folder. I’m on LC 9.0.0(rc2), on Mac OS 10.12.3

Navigator saves stackfiles, script menu supports unlimited behaviors

2018-01-25 Thread Geoff Canyon via use-livecode
Added a "Save StackFiles" menu item to the popup menu when right-clicking on a stack or multiple stacks. This is especially useful for stacks using script-only behaviors. With one command it saves all the stacks referenced in the stack's stackfiles property. This is particularly us

Re: stackfiles -- how to use?

2011-07-29 Thread Phil Davis
Hi Nicolas, Coming late to the party... For an example of what 'the stackfiles' look like, open the IDE message box and type" put the stackfiles of stack "home" Phil Davis On 7/24/11 7:42 PM, Nicolas Cueto wrote: Hello, Apologies for the length of this, bu

Re: stackfiles -- how to use?

2011-07-28 Thread Nicolas Cueto
> Although in this case, the stack in > question is the main standalone stack, so it's always in use anyway. Interesting (and come to think of it, obvious). So does this mean that I do not need to include a "start using this stack" in my standalone to allow other stacks to call functions and han

Re: stackfiles -- how to use?

2011-07-25 Thread J. Landman Gay
On 7/25/11 1:43 PM, Pete Haworth wrote: I think I missed the original post of this thread, but perhaps a "start using" command would take care of all this? If the stackfiles property is included in the inheritance hierarchy, which is what I'm not sure of, then yes. Although in

Re: stackfiles -- how to use?

2011-07-25 Thread Pete Haworth
cr& \ >> "game2,game2.rev"& cr& & cr& "animationEngine,**animationEngine.rev" >> \ >> into tStackFiles >> set the stackFiles of stack "Mainstack.exe" to tStackFiles >> ... >> open stack "Index-stack&q

Re: stackfiles -- how to use?

2011-07-25 Thread J. Landman Gay
t;& cr& \ "game2,game2.rev"& cr& & cr& "animationEngine,animationEngine.rev" \ into tStackFiles set the stackFiles of stack "Mainstack.exe" to tStackFiles ... open stack "Index-stack" hide stack "Mainstack" end setUpF

stackfiles -- how to use?

2011-07-24 Thread Nicolas Cueto
Hello, Apologies for the length of this, but I'd very much like list help to understand better a scripting practice I've been doing half-baked for a long time now. It has to do with stackFiles (I think?), the steps for implementing which I describe below, but first precede with an

Re: Stackfiles followup

2011-02-15 Thread Peter Haworth
Monte, Thanks for the update. I just changed all my code back to using the stackFiles property instead of using the code you suggested in the Startup event and now everything works! I have changed this code so many times now that I honestly can't remember what is different about it now

Re: Stackfiles followup

2011-02-15 Thread Peter Brigham MD
On Feb 14, 2011, at 3:01 PM, Peter Haworth wrote: The behaviors are specified in the form "button id 1234 of stack "xyzSub". I tried adding "of stack "xyz" after the behavior specifications but the IDE simply removes that text. Behavior references have to be in the form of a long id: s

Re: Stackfiles followup

2011-02-14 Thread Monte Goulding
>>> However, it looks like I have some wholesale changes to make to get my >>> stackFiles working correctly with regard to my behavior scripts. The >>> buttons that hold the behavior scripts are in a substack. I've included >>> the name of the beha

Re: Stackfiles followup

2011-02-14 Thread Peter Haworth
e: > >> My front scripts are now working OK after I addedd "of stack "xyz" to my >> insert commands as Jacqueline suggested. >> >> However, it looks like I have some wholesale changes to make to get my >> stackFiles working correctly with regard to m

Re: Stackfiles followup

2011-02-14 Thread Monte Goulding
On 15/02/2011, at 7:01 AM, Peter Haworth wrote: > My front scripts are now working OK after I addedd "of stack "xyz" to my > insert commands as Jacqueline suggested. > > However, it looks like I have some wholesale changes to make to get my > stackFiles worki

Stackfiles followup

2011-02-14 Thread Peter Haworth
My front scripts are now working OK after I addedd "of stack "xyz" to my insert commands as Jacqueline suggested. However, it looks like I have some wholesale changes to make to get my stackFiles working correctly with regard to my behavior scripts. The buttons that hold the b

Re: stackFiles

2011-02-14 Thread Peter Haworth
Thanks to all for the pointers and advice. I can get this working now with one of the suggested methods or possibly a combination. As for the issue of the mainstack not being in the behavior ID, I'm glad it's not there, like Monte and wouldn't like to see the software changed to be in line wit

Re: stackFiles

2011-02-13 Thread Mark Wieder
Monte- Sunday, February 13, 2011, 9:05:23 PM, you wrote: > I personally like the idea that the behavior doesn't include the > mainstack name so I can copy the substacks I store my behaviors on > out of my object library into the standalone at build time without > anything breaking ;-) ! I never

Re: stackFiles

2011-02-13 Thread Richard Gaskin
Monte Goulding wrote: On 14/02/2011, at 3:43 PM, Mark Wieder wrote: Monte- Sunday, February 13, 2011, 7:49:38 PM, you wrote: I believe you will have to add the substack with the behavior buttons on it to the stackfiles too because the behavior rugged id doesn't include a mainstack refe

Re: stackFiles

2011-02-13 Thread Monte Goulding
On 14/02/2011, at 3:43 PM, Mark Wieder wrote: > Monte- > > Sunday, February 13, 2011, 7:49:38 PM, you wrote: > >> I believe you will have to add the substack with the behavior >> buttons on it to the stackfiles too because the behavior rugged id >> doesn&#

Re: stackFiles

2011-02-13 Thread Mark Wieder
Monte- Sunday, February 13, 2011, 7:49:38 PM, you wrote: > I believe you will have to add the substack with the behavior > buttons on it to the stackfiles too because the behavior rugged id > doesn't include a mainstack reference. Urk. That's quite a gotcha. Is there a bug

Re: stackFiles

2011-02-13 Thread Monte Goulding
> Pete, if you want to use stackfiles, you can make do with the single entry > you created that points to the mainstack. Then in your scripts, refer to the > substacks as "stack mySub of stack xyz". I believe you will have to add the substack with the behavior buttons on it

Re: stackFiles

2011-02-13 Thread J. Landman Gay
On 2/13/11 9:17 PM, Mark Wieder wrote: Pete- Sunday, February 13, 2011, 6:49:41 PM, you wrote: Need some clarification on the use of the stackFiles property. I have a file, xzy.livecode. It has a mainstack and several substacks. I need access to the mainstack and some of the substacks in

Re: stackFiles

2011-02-13 Thread Monte Goulding
>> Need some clarification on the use of the stackFiles property. I >> have a file, xzy.livecode. It has a mainstack and several >> substacks. I need access to the mainstack and some of the substacks >> in my application. I set up a stackFiles entry referring to the main

Re: stackFiles

2011-02-13 Thread Peter Haworth
other stacks that I refer to for various reasons from my application. The intent of all this is to have a library of reusable code available to any and all applications I write. I was given the stackfiles methodology some time ago by someone on this list, but perhaps it's not the best w

Re: stackFiles

2011-02-13 Thread Mark Wieder
Pete- Sunday, February 13, 2011, 6:49:41 PM, you wrote: > Need some clarification on the use of the stackFiles property. I > have a file, xzy.livecode. It has a mainstack and several > substacks. I need access to the mainstack and some of the substacks > in my application

Re: stackFiles

2011-02-13 Thread Monte Goulding
> Need some clarification on the use of the stackFiles property. I have a > file, xzy.livecode. It has a mainstack and several substacks. I need access > to the mainstack and some of the substacks in my application. I set up a > stackFiles entry referring to the main stack with a

stackFiles

2011-02-13 Thread Peter Haworth
Need some clarification on the use of the stackFiles property. I have a file, xzy.livecode. It has a mainstack and several substacks. I need access to the mainstack and some of the substacks in my application. I set up a stackFiles entry referring to the main stack with a path to the stack