{"id":26662980,"url":"https://github.com/hhas/swiftautoedit","last_synced_at":"2025-03-25T14:19:20.349Z","repository":{"id":200422283,"uuid":"276196232","full_name":"hhas/swiftautoedit","owner":"hhas","description":"Old quick-n-dirty Swift micro-editor for SwiftAutomation users. Very, very abandoned.","archived":false,"fork":false,"pushed_at":"2020-06-30T19:58:45.000Z","size":52,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2023-10-16T23:10:29.812Z","etag":null,"topics":["applescript","automation","swift"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hhas.png","metadata":{"files":{"readme":"README","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2020-06-30T19:58:33.000Z","updated_at":"2023-10-16T23:10:45.168Z","dependencies_parsed_at":"2023-10-16T23:10:44.592Z","dependency_job_id":null,"html_url":"https://github.com/hhas/swiftautoedit","commit_stats":null,"previous_names":["hhas/swiftautoedit"],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hhas%2Fswiftautoedit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hhas%2Fswiftautoedit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hhas%2Fswiftautoedit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hhas%2Fswiftautoedit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hhas","download_url":"https://codeload.github.com/hhas/swiftautoedit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245476705,"owners_count":20621699,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["applescript","automation","swift"],"created_at":"2025-03-25T14:19:19.747Z","updated_at":"2025-03-25T14:19:20.319Z","avatar_url":"https://github.com/hhas.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SwiftAutoEdit README\n\nSwiftAutoEdit is a quick-n-dirty Swift micro-editor that enables\nSwiftAutomation users to write and run simple Swift-based \"scripts\".\n\n## Features\n\n* syntax highlighting\n\n* application dictionary (SDEF file) viewer\n\n* AppleScript to Swift command translator\n\n\n## Requirements\n\n* SourceKitten (https://github.com/jpsim/SourceKitten)\n\n* SwiftAutomation (https://bitbucket.org/hhas/swiftae)\n\nFor detailed installation instructions, see the above projects' own \ndocumentation. Precis:\n\nTo install SourceKitten:\n\n  git clone https://github.com/jpsim/SourceKitten.git \n  cd SourceKitten\n  sudo make install\n\nTo install SwiftAutomation:\n\n  git clone https://bitbucket.org/hhas/swiftae.git\n\nBuild the SwiftAutomation and MacOSGlues frameworks using the\nproject's Release scheme, then create symlinks to the built frameworks\nin /Library/Frameworks (replace `/PATH/TO` with the path to the actual\nbuild folder):\n\n  cd /Library/Frameworks \n  sudo ln -s /PATH/TO/Build/Products/Release/SwiftAutomation.framework \n  sudo ln -s /PATH/TO/Build/Products/Release/MacOSGlues.framework\n\n\n## Caveats\n\nThis code is a quick-n-filthy hack, therefore, use at own risk, E\u0026OE,\nno warranties given.\n\nAlso:\n\n* The dictionary viewer relies on non-public OSAKit APIs. There isn't\n  yet an option to display a dictionary by selecting its application\n  directly; for now, use File\u003eOpen to select an `.sdef` file already\n  created by SwiftAutomation's `aeglue` tool. (Tip: The MacOSGlue \n  framework bundle's Resources folder contains pre-generated SDEF \n  files for each of its application glues.)\n\n* The command translator may crash or display less-than-optimal/\n  incorrect information, depending on how many bugs have yet to be\n  squished in SwiftAutomation.\n\n* The Swift code editor… bless. Of all the hacks, it is the quickest\n  and dirtiest. (If anyone fancies a crack at improving it, please\n  fork away and have at it.)\n\n* The immediate goal is to provide a rudimentary Script Editor-like\n  app that new SwiftAutomation users can use to work through the\n  tutorial chapter and write simple automation \"scripts\" using Swift.\n\n\n## TO DO\n\n* dictionary viewer isn't automatically switching between tab views;\n  need to fix this so that, at minimum, it displays Suites and Search\n  tabs correctly (the Inheritance and Containment tabs are far less\n  useful as they don't work correctly anyway, and even if they did\n  the UI is really weak; e.g. compare Script Debugger's UI)\n\n* bugs in dictionary viewer and translation doc prevent previously\n  opened files being reopened after being closed\n\n* integrated glue framework generation + installation (using aeglue);\n  this might be provided via File menu and/or as \"create glue\" option \n  on dictionary viewer\n\n* File\u003eOpen Dictionary… menu option that allows user to display an\n  app's' dictionary by choosing the application itself (see also the\n  preceding TODO)\n\n* integrate SourceKitten framework for better code formatting\n  performance and other SourceKit features, e.g. live code checks\n  (constantly re-running running sourcekitten subprocess is heinously\n  sluggish and not scalable)\n\n* option for automatically including \"#!...\" first line and setting\n  executable flag when saving \"scripts\", allowing them to be run\n  directly from Terminal\n\n* improve display of script stdout/stderr/exit messages\n\n* implement SwiftAutoEdit and SwiftAutomation documentation in \n  Help menu\n\n* fix Script menu's Enabled bindings\n\n* burn it with fire\n\n* total rewrite\n\n* app icon\n\n* better name\n\n\n## Acknowledgements, Licensing, etc\n\nSome code taken from \u003chttps://github.com/jpsim/SwiftEdit\u003e, \nwhich in turn is a fork of \u003chttps://github.com/sjhorn/SwiftEdit\u003e,\nwhich in turn requires release under the following CC license:\n\u003chttp://creativecommons.org/licenses/by-sa/3.0\u003e.\n\nMany thanks to JP Simard and Scott Horn for the SwiftEdit leg-up on\nSwiftDocument view, and to Chris Nebel for the voodoo incantations\nrequired to bring OSADictionaryView to life.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhhas%2Fswiftautoedit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhhas%2Fswiftautoedit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhhas%2Fswiftautoedit/lists"}