mstratman/cocoadialog — Issue #31: Parse JSON files to provide dialogs
Author: markcarver
Created: 2011-11-20 21:04:09+00:00
State: open
Labels: 3.1, Feature Request

For scripts that rely heavily on cocoaDialog and with the expanding available options, it would be nice to give the ability to parse a file that contains something like JSON objects. This would be useful in instances where servers could provide dialogs or being able to setup multiple dialogs all in one file so scripts could condense source code:

```
cocoaDilaog parse "/data.json" "confirm"
```

`data.json`:

{
'confirm`: {
'runmode': 'msgbox',
'title': 'Empty Folder',
'labels': {
'Confirm Delete',
'Do you wish to delete these files',
'icon': 'caution',
'buttons': {
'Okay',
'Cancel',
}
}
}