Repository navigation
OMC 5.6 #33
abra-code
announced in
Announcements
OMC 5.6
#33
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
OMC 5 requires macOS 14.6 or later. For older macOS versions, use OMC 4.x.
OMC 5.6 is built against ActionUI 0.9.14. The output window, the progress window and the input dialog are now ActionUI windows, and the nib windows behind them are gone. This release also fixes a set of long-standing engine bugs: output with accented letters, CJK text or emoji losing pieces,
omc_list_append_items_from_stdinbeing ignored, lost output inWAIT_FOR_TASK_COMPLETIONcommands, and Services that hung or mixed up their results. The embedded Python stays at 3.15.2.Most of the engine's Objective-C code moved to portable C++ in this release. On macOS nothing changes except what is listed below.
Rebuild your applets with AppletBuilder 5.6. The engine fixes and the new windows arrive only when an applet is rebuilt.
appletbuilder build --forcerefreshes the engine even when the version check would skip it.This is the last release with nib dialogs and OMCService.service. Version 6, now in development, drops both. Applets with
NIB_DIALOGwindows keep working with the 5.6 engine.Built-in windows are ActionUI windows
Output window (the
*_with_output_windowmodes):OUTPUT_WINDOW_SETTINGS, which used to show Helvetica 12.TEXT_COLORandBACKGROUND_COLORthe window follows the system appearance, light or dark, instead of always black on white.#, as in the command reference's examples, now work. They were silently ignored.WINDOW_ALPHA,WINDOW_OPEN_FADE_IN,WINDOW_CLOSE_FADE_OUTand the custom PNG window keys (CUSTOM_*) are removed and ignored.WINDOW_TYPEcustomis read asfloating. The validator warns about each of them, so delete them from your command files.Progress window (
PROGRESS): the title, the remembered frame, the forward-only bar, the indeterminate mode and the Stop button work as before. A long status line now ends in an ellipsis.Input dialog (
INPUT_DIALOG):INPUT_MENUnames: a typed name gives itsVALUE, any other text is the answer as typed. The pop-up menu starts on theDEFAULTitem.INPUT_MENUitems may be plain strings, as documented. The dialog used to read only dictionaries with aNAME, so a menu written as the command reference showed was empty in every release. A string is shown and returned as written; a dictionary shows itsNAMEand returns itsVALUE, or else itsNAME.INPUT_MENUshows its items again. 5.5 dropped every item when the command had a localization table.Engine fixes
omc_list_append_items_from_stdinworks again. Since 5.1omc_dialog_controldid not recognize it and set the list to one item, the verb's own name.WAIT_FOR_TASK_COMPLETIONcommand no longer loses its output now and then. The wait could end early, before the command's output was read. This was in every release since 4.3.SIGPIPEat its default. Once a command had written to a script's standard input, every later script in the same applet inherited an ignoredSIGPIPE, so inproducer | head -n 1the producer got write errors instead of ending quietly.exe_systemcommands still inherit the ignored signal.NEXT_COMMAND_IDchain is waited for to its last command.PATH, or one that is not UTF-8. Both crashed the applet.SUBMENU_NAMEwith a.or..component no longer crashes the applet, and an absolute or~command file path works there as it does for running commands.PASTE_AFTER_EXECUTIONasks for the Accessibility permission instead of doing nothing (GitHub issue PASTE_AFTER_EXECUTION #18). macOS drops keystrokes sent to other apps by an app without that permission. OMC now checks first: it asks macOS to show the permission prompt once per process, logs which app needs the permission, and sends nothing. For the contextual menu plugin that app is Shortcuts.app; for a Service, the OMC Services app.omc_dialog_control,omc_next_commandand the ActionUI remote bridge are still in$TMPDIR, but a folder there that another user made first, or a link, is refused. A Terminal command whose setup script cannot be written runs without it instead of crashing.plister
/as written. Keys an olderplisterwrote in decomposed form are still found. A doubled/no longer ends the path early.AppletBuilder
appletbuilder create --template <name>takes the bundled template of that name before a folder of that name in the current directory. A template or clone source that is not an applet is refused before anything is copied.Command.jsonis shown in the file's own key order, so a save no longer reorders its keys, and a reload after an outside change no longer shows XML.hashlibandxmlextension modules from a Python 3.15 applet too.omctestis about twice as fast. It starts far fewer processes per handler dispatch and per stub call; AgentVM.app's suite went from 33 minutes to 14.5 with the same 3181 checks.OMCTEST_API_VERSIONis unchanged at 7.INPUT_MENUitems, warns about the removed output window keys, and gives the real defaults for the output window settings.ActionUI 0.9.14
Changes since ActionUI 0.9.10, which OMC 5.5 was built against:
"implementation": "native"draws the editor with AppKit's text view. A value that extends the text is appended without laying out the whole text again, so a growing log stays fast. The newactionui.appendTextmethod on the remote bridge appends text to a field without firing its action; it isappend_textin the Python client (omc.window().append_text(...)) andactionui_append_textin the shell client. The default stays SwiftUI's editor.progress(-1) makes the bar indeterminate, also at run time. Setting it to null was refused once the bar had held a number.Menuinside aCommandMenu, aCommandGroupor anotherMenubecomes a submenu. It was dropped before.actionContextrowColumnIndexhands its handler{"row": R, "column": C}, andopenURLActionIDhands the URL as text. Neither had a form a handler could read.getElementInfolists the window's elements as they are now: removed elements are no longer listed, and an element inserted with a removed one's id has its own type."type:apple"and no"type"is left out on other platforms, and the validator now accepts it.textandmarkdownproperties in JSON are only the initial content. To change what a Text shows at run time, set its value. The documentation now says so; the behavior is unchanged.Documentation
PASTE_AFTER_EXECUTIONis documented for the first time: the command copies its result to the clipboard itself, the paste goes to the app in front, and the Accessibility permission is required.AUTO_CLOSE_ON_SUCCESS_ONLYis true, and withoutAUTO_CLOSE_TIMEOUTthe window stays open. The reference used to say false for the first and that a timeout of 0 meant no auto-close.Compatibility notes
$OMC_OMC_SUPPORT_PATHis now.../Abracode.framework/Support, the framework's link to its current version's Support folder, instead of.../Abracode.framework/Versions/Current/Support. Both reach the same tools; a script that compares the path as text sees the difference.OMCSingleCommand, a nib object from 2008 that no applet used, is removed.In this distribution
~/Library/Preferences/com.abracode.OnMyCommandCMPrefs.plist.codesign_applet.sh,install_contextual_menu_plugin.sh,thin_distribution.sh,OMCApplet.entitlements, and the examplecom.abracode.OnMyCommandCMPrefs.plist.See the main OMC README at https://github.com/abra-code/OMC/ for full documentation on commands, runtime context, dialogs, and services.
This discussion was created from the release OMC 5.6.
All reactions