Hi David, > Am 14.12.2014 um 17:02 schrieb David Epstein <dfepst...@comcast.net>: > > Is there a way to determine by script which version of LC’s file format an > existing stack uses? > I see that I can set the file format version when saving a stack by setting > the stackFileVersion, > but I’d like to write a script that saves a stack and leaves unchanged its > prior version.
you can read and check the first 8 chars/bytes of the stack file! These will be: REVO7000 for stacks saved with >=LC 7.x and: REVO2700 for stacks < 7.x > Many thanks. > > David Epstein Best Klaus -- Klaus Major http://www.major-k.de kl...@major-k.de _______________________________________________ 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