Skip to content

steventroughtonsmith/CatalystAppleScript

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 

CatalystAppleScript

Trivial demonstration showing how to build support for AppleScript into a Catalyst app. Showcases multiple commands and variables that can be set/get, and passed arguments.

Prerequisites checklist:

  • Add NSAppleScriptEnabled to Info.plist
  • Add OSAScriptingDefinition to Info.plist and point it to your scripting definitions file
  • Craft a scripting definitions file (sdef). Note that scriptable variables have unique codes, types and access control r/rw
  • Define NSScriptCommand in your ObjC bridging header so that Swift can see it to subclass it

Screenshot

About

Demonstration of how to integrate AppleScript/Cocoa scripting into a Catalyst app

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published