Comparing filenames based on case sensitive filepaths
Terry Judd
tsj at unimelb.edu.au
Wed Mar 9 13:52:10 EST 2011
Thanks Mike - I'll give that a try.
Terry...
On 10/03/11 1:18 AM, "Mike Bonner" <bonnmike at gmail.com> wrote:
> forgot the quotes.
>
> get shell("ls myTest |grep `ls -d myTest` -")
>
> On Wed, Mar 9, 2011 at 7:17 AM, Mike Bonner <bonnmike at gmail.com> wrote:
>
>> If I understand what you mean, this might work
>>
>> set the defualtfolder to justAbovethedirectoryToBeChecked
>> get shell(ls myTest |grep `ls -d myTest` -) --myTest is the folder name and
>> the filename
>> if it is empty then
>> answer information "They differ"
>> else
>> answer information "They match"
>> end if
>>
>> I don't have a mac to test on, and so don't know if ls is case sensitive
>> on mac. Even if it isn't, I THINK it will work since it should return the
>> actual case of the file and folder names at which point, grep is case
>> sensitive so should work fine.
>>
>>
>> On Tue, Mar 8, 2011 at 11:11 PM, J. Landman Gay
>> <jacque at hyperactivesw.com>wrote:
>>
>>> On 3/8/11 10:44 PM, Terry Judd wrote:
>>>
>>>>
>>>> It's because of a weird glitch on OSX 10.5. If you have an old-style (non
>>>> bundle) Mac app that is named the same (case sensitive) as its parent
>>>> folder
>>>> then you cant launch it other than by double-clicking its icon (shell,
>>>> Livecode and Applescript launch methods all fail). Change the case of one
>>>> character in either the folder or the filename and you can launch it any
>>>> old
>>>> way.
>>>>
>>>
>>> That's just bizarre. I'm surprised you could isolate it. Your sleuthing
>>> techniques are pretty good.
>>>
>>>
>>> --
>>> Jacqueline Landman Gay | jacque at hyperactivesw.com
>>> HyperActive Software | http://www.hyperactivesw.com
>>>
>>> _______________________________________________
>>> use-livecode mailing list
>>> use-livecode at lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>>
>>
>>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
--
Dr Terry Judd | Senior Lecturer in Medical Education
Medical Education Unit
Melbourne Medical School
The University of Melbourne
More information about the use-livecode
mailing list