Commas in stack names

Richmond richmondmathewson at gmail.com
Wed Nov 6 01:36:11 EST 2013


On 6.11.2013 00:40, J. Landman Gay wrote:
> On 11/5/13 4:19 PM, Monte Goulding wrote:
>>
>> On 06/11/2013, at 9:10 AM, J. Landman Gay wrote:
>>
>>> Is there a reason a stack name can't include a comma? The engine
>>> replaces them with underscores.
>>>
>>> I know Windows doesn't like file names with commas, but this is
>>> about the stack name. The automatic replacement is wreaking havoc
>>> with my scripts. I don't have any control over what the stack is
>>> named, so I can't just remove the commas.
>>
>> Hmm... how did they get comma in the first place if it's the engine
>> automatically replacing it?
>
> I have a tool that builds stacks. The stack name is pulled from a text 
> file, and sometimes the name has a comma. We can't change that. When 
> the build tool sets the stack name, the engine replaces commas with 
> underscores.
>
> The standalone that runs these stacks tries to go to a stack of the 
> original name, pulled from a display list, but it is no longer valid 
> because the engine changed it and navigation fails. So I have a bunch 
> of fixing to do.
>
> So I'm wondering why stacks can't have commas in their names. Cards can.
>

I don't know the answer either, but . . .

how about replacing all the commas in the text file with underscores 
before anything else?

Richmond.




More information about the use-livecode mailing list