This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Derived from (Sketch 47.1) | |
### log(NSApp.delegate().actionController().allActions()); | |
MSShowOnlineHelpAction | |
MSRunLastScriptAction | |
MSNewFromTemplateAction | |
MSSilentCheckForUpdatesAction | |
MSFeedbackAction | |
MSQuietCheckForUpdatesAction | |
MSOpenCloudPreferencesAction |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Derived from (Sketch v47.1): | |
### log(context.document.actionsController().allActions()); | |
MSConstraintPinLeftAction | |
MSAlignMiddleAction | |
MSToggleBorderAction | |
MSCurveModeAsymmetricAction | |
MSRemoveTextTransformAction | |
MSReduceImageSizeAction | |
MSInsertImageAction |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function addLibraryFileFromPlugin(context) { | |
var sketch = context.api(); | |
var libSourceFile = "libraries/myLibrary.sketch"; // The file with the symbols for your library; should located in the plugin's resources folder | |
var libSourcePath = context.plugin.urlForResourceNamed(libSourceFile).path(); | |
if(libSourcePath) { | |
var libURL = NSURL.fileURLWithPath(libSourcePath); | |
var libPaneIdentifier = MSAssetLibrariesPreferencePane.identifier(); | |
var libPane = MSPreferencesController.sharedController().preferencePanes().objectForKey(libPaneIdentifier); | |