Skip to main content

Module script

Module script 

Source
Expand description

Pure AppleScript render functions for tag-admin ops. No I/O — each function takes the inputs the tool surface accepts and returns the AppleScript source as a String. The driver (OsascriptDriver) and the facade (TagAdmin) are the layers that actually run the script.

Functions§

escape_applescript_string
Escape a user-supplied string for safe inclusion inside an AppleScript double-quoted literal. AppleScript’s escape rules: backslash escapes itself and a literal double quote.
render_create_tag
render_delete_tag
render_merge_tags
Reassign every to-do that carries source to also carry target, then delete the source tag. AppleScript surface: to dos of tag "source" enumerates the tasks; we add the target tag to each and then remove the source tag from the global tag list.
render_move_tag
render_rename_tag