Squeak-NSApplescript Mercurial
Squeak NSApplescript is a new interface for Applescript in post Carbon
Brought to you by:
cat52
| File | Date | Author | Commit |
|---|---|---|---|
| AS-library | 2025-08-14 |
|
[69a028] Initial code |
| NSApplescript.st | 2025-08-14 |
|
[69a028] Initial code |
| README | 2025-08-14 |
|
[61daab] README changes |
Squeak-NSApplescript is a new interface for acess Applescript from Squeak in post Carbon macOS. This proyect contains two parts: - AS-library: XCode proyect to create libAS.dylib who implements a single function to run applescript code, also contains demoApplescrit to test the libtary. - NSApplescript.st: squeak code to call the library via FFI, utility functions and examples of use; needs libAS.dylib to be installed in /usr/local/lib/ who is called by asDoi:errMsg:res:type:n: return an error, a string or a collection (for applescript list) . All of the examples work except browse: like: NSApplescript browse: 'http://squeak.org' who don't open the site and return a bad formed drag&drop event, demoApplescrit can call libAS and works so the problem is probably in the FFI or VM code . The compile and then run capbility of the Carbon version is not implemented . The AS list return a squeak collection is new, the Carbon version only return a string, because the return is in UTF-16 the utility funtion convertToUTF8:counr: is needed, thanks to Marcel Taeumel for the example to how to do this conversion in squeak . This is a evolution of the original package Applescript code by Andrew C. Greenberg (1957 – August 28, 2024) 2025-08-14