Articles
Creating Plugins
1. Add SDK
git@bitbucket.org:apptorium/workspacessdk.git
2. Info.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CanEdit</key>
<true/>
<key>RunInNewInstance</key>
<true/>
<key>CanShowPreferences</key>
<true/>
<key>IsWorkspacesAction</key>
<true/>
</dict>
</plist>
3. Apple Events & Sandbox
Hardened Runtime → Apple Events Disable Sandbox.
4. *App.swift
import WorkspacesSDK
5. Configs
Local configuration - accessible for the action only.
import Foundation
import WorkspacesSDK
struct LocalConfig: WorkspacesActionConfig {
}
Global configuration - accessible for every action.
import Foundation
import WorkspacesSDK
struct GlobalConfig: WorkspacesActionConfig {
}
