Skip to content

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

Notifications You must be signed in to change notification settings

steventroughtonsmith/CatalystAppleScript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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