This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-07-25
Channels
- # announcements (1)
- # babashka (15)
- # biff (15)
- # calva (9)
- # cherry (18)
- # cider (43)
- # cljs-dev (1)
- # cljsrn (10)
- # clojure (14)
- # clojure-europe (47)
- # clojurescript (29)
- # clr (5)
- # conjure (1)
- # core-logic (17)
- # datomic (8)
- # emacs (22)
- # fulcro (3)
- # gratitude (1)
- # hoplon (23)
- # humor (1)
- # hyperfiddle (34)
- # jobs (1)
- # kaocha (1)
- # malli (3)
- # nrepl (4)
- # off-topic (18)
- # pathom (12)
- # pedestal (1)
- # polylith (1)
- # portal (17)
- # practicalli (1)
- # re-frame (19)
- # reitit (8)
- # releases (1)
- # rewrite-clj (4)
- # shadow-cljs (15)
- # sql (23)
- # tools-build (4)
Hey, is OBB still the go-to to interact with the macOS/Apple Script/Automator ecosystem, or has anyone perhaps already written a custom lib for BB itself? (I don't know much about it (yet) and wanted to try it out for a hobby project).
... Ah … So it's just BB + the Stuff to adapt it to Apple's systems?
I should have read the manual:
> ## How does this tool work?
> ClojureScript code is evaluated through https://github.com/borkdude/sci, the same interpreter that powers https://babashka.org/. SCI is compiled to JavaScript which is then by executed by osascript
.
What are the limitations to OBB compared to BB? I want to write software that tracks my use of my computer locally and maybe runs a local webserver to display the data I recorded. But I guess it would make sense to separate the "tracking" from the "analytics" anyway.
> What are the limitations to OBB compared to BB? The host platform is just very different. It's same as asking, what is the limitation of Node.js compared to the JVM
Hm… OK, I think I understand.
I can't do things like: (spit ...)
only interact with the OSA stuff.
That's good enough.
Is there a nice way to call OBB from BB?
Right now, I'm doing:
(->>
(str `(-> (js/Application "Brave") (.-windows) (aget 0) (.activeTab) (.title)))
(process/shell {:out :string} "obb" "-e")
:out)
@U04V15CAJ Before I open an issue on GitHub. Do you know what happens here?
❯ obb -e '(.processes (js/Application "System Events"))'
/usr/local/bin/obb: execution error: Error: Error: Typen können nicht konvertiert werden. (-1700)
~
❯ osascript -l JavaScript <<< 'Application("System Events").processes()'
Application("System Events").applicationProcesses.byName("loginwindow"), Application("System Events").applicationProcesses.byName("softwareupdated"),
...
Error: Typen können nicht konvertiert werden.
= "Types could not be converted"