Comparing filenames based on case sensitive filepaths

Jerry J jhj at jhj.com
Tue Mar 8 23:26:02 EST 2011


On Mar 8, 2011, at 8:07 PM, J. Landman Gay wrote:

> 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.

Do I remember correctly that one can format an HFS+ volume to be case-sensitive? I never heard of anybody actually doing it, except just before they un-did it because of all the trouble it caused.

Jerry Jensen





More information about the use-livecode mailing list