[Blog] Script Only Stacks

Peter TB Brett peter.brett at livecode.com
Thu Mar 3 15:28:21 EST 2016


On 03/03/2016 18:12, Peter TB Brett wrote:
> On 03/03/2016 17:48, Tim Bleiler wrote:
>> In the blog post, Mark states that "The fact that script only stack
>> files really are just text files is really important! It means you can
>> edit and create them in any text editor you choose, and use any text
>> based processing tool on them…”
>>
>> I’ve been trying to work with script only stacks on Mac OS X 10.11 for
>> a few weeks now, at least since Livecode version 8 dp12. If I open one
>> up in TextEdit and save it, Livecode gives me the error message:
>> “Unable to open stack: File is not a stack”. The only way to recover
>> the script has been to copy and paste it from the text editor into a
>> new script only stack script. Additionally, I’ve never been able to
>> create one in a text editor from scratch without getting the same
>> error message from Livecode when I try to open it. I figure I must be
>> doing something wrong because with the team using these all the time I
>> don’t see how they wouldn’t have run into this. Any suggestions?
>
> The only thing I can think of to suggest is to make sure that your
> editor is saving the file as UTF-16 text.
>
> Usually script-only stacks start with a UTF-16 byte order mark.

And of course I have egg on my face because script-only stacks are 
UTF-8, not UTF-16.  Thank you to everyone who corrected me!

                                       Peter

-- 
Dr Peter Brett <peter.brett at livecode.com>
LiveCode Open Source Team

LiveCode 2016 Conference https://livecode.com/edinburgh-2016/




More information about the use-livecode mailing list