Peter Brigham <pmbrig@...> writes: > > Double-check me on this. >
No, you're still checking the enclosing directory instead of the file. Grab "/sys/class/power_supply/BAT0/status" and the same for BAT1. ...and the caseSwitch function confuses me a bit: I don't think the 'if tMatch = "*"' part is going to do anything useful here (do you really expect the contents of the status file to be "*"? and there's no processing for the case where tCheckValue is *not* among the items of tMatch *and* tMatch is not "*" (will return empty). -- Mark Wieder ahsoftw...@gmail.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