MacGapProject / MacGap1

Desktop WebKit wrapper for HTML/CSS/JS applications.
Other
3.55k stars 208 forks source link

Advice add command-line result for macgap #134

Closed FeeiCN closed 10 years ago

FeeiCN commented 10 years ago

Example:

<script>
    var command = "ls -al";
    result = macgap.command.exec(command);
    console.log(result);
</script>
jeff-h commented 10 years ago

New functionality is unlikely to be added to MacGap 1 at this stage. Please have a play with MacGap 2, which is currently in beta but does already have a Task() command which should do what you want.

However, I was playing with MacGap 2's Task() command yesterday and couldn't get it to give me the task's output. See my issue at https://github.com/MacGapProject/MacGap2/issues/26