Re: Background Long IDs

2018-05-08 Thread Brian Milby via use-livecode
I opened a stack where the shared/BG groups are not on the first card and immediately issued the following in the message box: put the long id of group "BG1" of card 1 of stack "AutoScriptSaver" put the long id of group "SG1" of card 1 of stack "AutoScriptSaver" In both cases I get: Error

Re: Background Long IDs

2018-05-08 Thread Mark Wieder via use-livecode
On 05/08/2018 02:03 AM, Mark Waddingham via use-livecode wrote: When you go to a card with a shared group, or (in most cases) reference a shared group against a card, the group is reparented to that card (a group can only ever have one parent at once). If the group is a background then the

Re: Background Long IDs

2018-05-08 Thread Mark Waddingham via use-livecode
On 2018-05-07 21:23, Richard Gaskin via use-livecode wrote: Brian Milby wrote: The end goal is to enable a binary stack to have the scripts within tracked via GitHub. A closely related goal is to enable editing of said scripts via an external editor. Script only stacks are not the way that I

Re: Background Long IDs

2018-05-07 Thread Brian Milby via use-livecode
Not by the engine. There may be a better way, but the code is in button 1003. _getObjectLongName starts on line 421. I built the long ID on line 171. On Mon, May 7, 2018 at 2:24 PM Richard Gaskin via use-livecode < use-livecode@lists.runrev.com> wrote: > Brian Milby wrote: > > > The end goal is

Re: Background Long IDs

2018-05-07 Thread Richard Gaskin via use-livecode
Brian Milby wrote: > The end goal is to enable a binary stack to have the scripts within > tracked via GitHub. A closely related goal is to enable editing of > said scripts via an external editor. Script only stacks are not the > way that I want to go for these projects (they are distributed

Re: Background Long IDs

2018-05-06 Thread Brian Milby via use-livecode
I've pushed an initial version to GitHub: https://github.com/bwmilby/lc-misc/tree/master/ScriptTracker The code is also there with the stack so it can be viewed online without downloading the stack. The code was exported from itself, so you can see how it constructs the exports. If you enable

Re: Background Long IDs

2018-05-06 Thread Brian Milby via use-livecode
Could be where it is being referenced. From the message box: put the long id of background id 1020 of stack "AutoScriptSaver" Returns: bkgnd id 1020 of stack "/Users/milby/Desktop/AutoScriptSaver.livecode" Until after I visit the card, when it changes to: group id 1020 of card id 1025 of stack

Re: Background Long IDs

2018-05-06 Thread dunbarx via use-livecode
Hi. Maybe I am not building this correctly. I made a new stack of five cards. I placed a BG group on card 3. It has ID 1005. On card 1 in a button script: on mouseUp put the long id of background ID 1005 of this stack into fld 2 end mouseUp In new sessions, whether I visit card 3 or not, I

Re: Background Long IDs

2018-05-06 Thread Brian Milby via use-livecode
@Mark, same as before. If the card has been visited then it starts with group, if not it starts with bkgnd. @Richard, probably more than you asked, but this is the project in a nutshell... The end goal is to enable a binary stack to have the scripts within tracked via GitHub. A closely related

Re: Background Long IDs

2018-05-06 Thread Richard Gaskin via use-livecode
Brian Milby wrote: > I'm working on a script exporter... What do you do with the exported scripts? -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web

Re: Background Long IDs

2018-05-05 Thread Mark Wieder via use-livecode
On 05/05/2018 05:37 PM, Brian Milby via use-livecode wrote: put the long id of background ID tObjectID of tStackLongID into tObjectLongID What do you get if you instead try put the long id of control ID tObjectID of tStackLongID into tObjectLongID -- Mark Wieder ahsoftw...@gmail.com

Background Long IDs

2018-05-05 Thread Brian Milby via use-livecode
I'm working on a script exporter and have the following line of code: put the long id of background ID tObjectID of tStackLongID into tObjectLongID What is peculiar is that I get the following different values: bkgnd id 1021 of stack "AutoScriptSaver" group id 1021 of card id 1025 of stack