FWeinb / node-osascript

Use AppleScript from node
68 stars 9 forks source link

missing value #11

Open rbrtrbrt opened 7 years ago

rbrtrbrt commented 7 years ago

It seems that both osavargen and osaparser have no support for the AppleScript "missing value".

It seems more reasonable and useful to me to have AS null parse to JS null and AS missing value parse to JS undefined, and have osavargen behave accordingly (But the test-scripts require osavargen to translate JS null to nothing).

I'm making a fork that handles null, missing value and undefined in this way, but this would be a breaking change. Do you want a pull-request?