Skip to content

added .omnijs #1043

Description

@bulava92

Please add processing another type of file as json

<filename>*.json</filename>
<filename>*.jsonc</filename>
<filename>*.avsc</filename>

Here is its approximate structure, these are scripts for the OmniGraffle program

/*{
    "author": "Mark Kats",
    "targets": ["omnigraffle"],
    "type": "action",
    "identifier": "com.example.ex",
    "version": "1.0",
    "description": "",
    "label": "EX(9)",
    "mediumLabel": "",
    "longLabel": "",
    "paletteLabel": ""
}*/

(() => {
    var preferences = new Preferences("EX");
    var action = new PlugIn.Action(function(selection, sender){

        var selectedGraphics = document.windows[0].selection.graphics;
        var layerNamesToExport = new Set();
        var layersToEnable = [];
        var layersToDisable = [];
        var rectcolor, layerName;
        var fileNumber = 0;
        var SaveLayerName = preferences.read("SaveLayerName");
        var SaveFileNumber = preferences.read("SaveFileNumber");
        var isScriptEnabled = false;
        var allLayers = document.windows[0].selection.canvas.layers;
        var canvas = document.windows[0].selection.canvas;
        var canvasGraphic = canvas.background;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions