| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Rx Editor is a script editor with a interactive interpreter (REPL). Rx is also a dialect of AppleScript expressed in JavaScript that should be easier and more familiar than the Apple JS binding.
AppleScript drives me crazy. It isn’t interactive like every other scripting language. It is too verbose (and that’s coming from someone that loves ObjC). Worst of all, it isn’t discoverable.
At some point Apple attempted to fix AppleScript by providing JavaScript bindings. Unfortunately, the JS bindings don’t make scripting much better. The Apple provided JS bindings suffer from all the afflictions of AppleScript, but with a vaguely JS feel.
Rx Editor is my attempt to make scripting suck less.
The minimum macOS version supported is therefore macOS 10.12 because of the use of NSXMLDocumentXInclude.
Mostly reference materials I fing myself needing as I develop Rx.
| Objective-C type | JavaScript type | AppleScript type |
|---|---|---|
| nil | undefined | null |
| NSNull | null | missing value |
| NSString | string | text |
| long | number | integer |
| long long | number | double integer |
| double | number | real |
| NSNumber | number, boolean | integer, real, number, boolean |
| NSNumber (BOOL) | boolean | boolean |
| NSNumber (OSType) | number | type |
| NSDictionary | Object object | record |
| NSArray | Array object | list |
| NSDate | Date object | date |
| NSBlock (1) | Function object (1) | script |
| id (2) | Wrapper object (2) | any |
| Class (3) | Constructor object (3) | |
| CGPoint | { x: #, y: # } | point |
| NSRange | { location: #, length: # } | |
| CGRect | { x: #, y: #, width: #, height: # } | rectangle |
| CGSize | { width: #, height: # } |
<property name="frequency">
<type type="number"/>
<type type="text"/>
</property>What is a specifier? It’s an unevaluated path to an object.
| Back | FazBrowse Home | New Git URL |