Ah, one last thing. Need to know the correct name of the directory too else IT returns 2 lines for files not found (if ls IS case sensitive) but that should be easy enough to check for. Of course this will probably be a non-issue depending on how you get the directory name.
Hmm of course if you have the path to the executable, then simply comparing item -1 to item -2 with caseSensitive on, will work. Ok. Ignore my ramblings, not sure if any of this at all is a help since you'd need to already have enough info to do what you want inside rev, before you could do it outside with a shell. On Wed, Mar 9, 2011 at 7:18 AM, Mike Bonner <bonnm...@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 <bonnm...@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 <jac...@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 | jac...@hyperactivesw.com >>> HyperActive Software | http://www.hyperactivesw.com >>> >>> _______________________________________________ >>> 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 >>> >> >> > _______________________________________________ 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