Cotton code
166 lines · 3.1 KB · JSONRaw
{  "format_version": 1,  "id": "fetch_file",  "name": "Landed file",  "plural": "Landed files",  "picture": null,  "builtin": false,  "visibility": "owner",  "engine": null,  "columns": [    {      "key": "fetch",      "name": "Download",      "type": "link",      "link_to": "fetch",      "required": true,      "readonly": true    },    {      "key": "name",      "name": "File",      "type": "text",      "required": true,      "readonly": true    },    {      "key": "kind",      "name": "Landed as",      "type": "choice",      "readonly": true,      "choices": [        "film",        "episode",        "song",        "book",        "photo",        "document"      ],      "labels": {        "film": "Film",        "episode": "Episode",        "song": "Song",        "book": "Book",        "photo": "Photo",        "document": "Document"      }    },    {      "key": "bytes",      "name": "Size",      "type": "number",      "format": "bytes",      "readonly": true    },    {      "key": "film",      "name": "Film",      "type": "link",      "link_to": "film",      "readonly": true    },    {      "key": "episode",      "name": "Episode",      "type": "link",      "link_to": "film_episode",      "readonly": true    },    {      "key": "series",      "name": "Series",      "type": "link",      "link_to": "film",      "readonly": true,      "hidden": true    },    {      "key": "song",      "name": "Song",      "type": "link",      "link_to": "song",      "readonly": true    },    {      "key": "book",      "name": "Book",      "type": "link",      "link_to": "book",      "readonly": true    },    {      "key": "photo",      "name": "Photo",      "type": "link",      "link_to": "photo",      "readonly": true    },    {      "key": "document",      "name": "Document",      "type": "link",      "link_to": "document",      "readonly": true    },    {      "key": "in_hidden",      "name": "In Hidden",      "type": "bool",      "readonly": true,      "hidden": true    }  ],  "seal": {    "clear": [      "fetch",      "kind",      "bytes",      "film",      "episode",      "series",      "song",      "book",      "photo",      "document"    ],    "blind": [      "name"    ]  },  "title": "name",  "date": null,  "project": null,  "order": null,  "slip": {    "title": "name",    "subtitle": "kind",    "trailing": "bytes",    "photo": null,    "toggle": null  },  "tile": {    "face": "slip-list"  },  "page": [    {      "heading": null,      "columns": [        "name",        "kind",        "bytes",        "fetch",        "film",        "episode",        "song",        "book",        "photo",        "document"      ]    }  ],  "sort": {    "column": "name",    "descending": false  },  "instructions": "One row per record a download landed: the file's name, what it landed as, and a link to the record in its own tool (a film or an episode in Cinemas, a song in Music, a book in Books, a photo in Photos, a document in Documents). The Mac's fetch_landed act writes these; never by hand."}