Comparing filenames based on case sensitive filepaths
bonnmike at gmail.com
Wed Mar 9 09:17:15 EST 2011
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
if it is empty then
answer information "They differ"
answer information "They match"
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
>> 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
> 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:
More information about the Use-livecode