Comparing filenames based on case sensitive filepaths
J. Landman Gay
jacque at hyperactivesw.com
Tue Mar 8 23:07:30 EST 2011
On 3/8/11 4:37 PM, Terry Judd wrote:
> Due to an obscure but annoying issue with OSX 10.5 I need to be able to
> check for the existence of a file based on the case of its name before I can
> launch it from Livecode. The exists function isn¹t case sensitive and the
> only idea I¹ve been able to come up with to date is to use the files
> function, filter the results based on the filename and then compare the two
> filenames (having set the caseSensitive property to true). This seems a bit
> long winded and I was hoping for a simpler and quicker way.
The Mac isn't case-sensitive, and it won't let you duplicate names
regardless of their case. I'm curious why you'd need to distinguish by that.
I can't think of any other way to compare case than what you've come up
with though.
--
Jacqueline Landman Gay | jacque at hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
More information about the use-livecode
mailing list