[ { "appName": "Sketch.app", "shortcut": [ { "menu": "Mask with Selected Shape", "key": "7", "modifier": ["command"] }, {
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
$ cp /Volumes/class-dump-3.5/class-dump /usr/local/bin/class-dump |
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
[ | |
{ | |
"appName": "Sketch.app", | |
"shortcut": [ | |
{ | |
"menu": "Flatten Selection to Bitmap", | |
"key": "e", | |
"modifier": [ "command", "control", "shift" ] | |
} | |
] |
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
@import '/path/to/script-file.js'; |
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
{ | |
"<class>" = MSShapeGroup; | |
clippingMaskMode = 0; | |
exportOptions = { | |
"<class>" = MSExportOptions; | |
exportFormats = ( | |
); | |
includedLayerIds = ( | |
); | |
layerOptions = 0; |
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
var doc = context.document; | |
var sel = context.selection; | |
var borderPosition = doc.askForUserInput_initialValue_( 'Set Border Position: 0:Center / 1:Inside / 2:OutSide', '' ); | |
if ( !borderPosition || '' == borderPosition || ( 0 > borderPosition || 2 < borderPosition ) ) return false; | |
for ( var i = sel.count() - 1; i >= 0; i-- ) { | |
var border = sel[i].style().borders(); | |
border.objectAtIndex(0).setPosition( borderPosition ); | |
}; |
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
// Fireworks Extension: Command | |
// Create XML from Fill Color of Named Objects. | |
// version: 0.0.2 | |
// auther: @littlebusters | |
// license: MIT | |
(function() | |
{ | |
var d = fw.getDocumentDOM(); | |
var attributes = new Array(); // objct name & fillColor |
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
log('This is an example Sketch script.'); | |
var doc = context.document; | |
var documentName = context.document.displayName(); | |
log('The current document is named: ' + documentName); | |
var selectedLayers = context.selection; | |
var selectedCount = selectedLayers.count(); |
ザックリ言うと、mxp 形式は古くからある形式で、古い Extension Manager でも扱える形式です。mxp 形式から拡張されたものがzxp 形式で、zxp 形式は Extension Manager CS5 から使えます。
一番の差異は、zxp 形式をインストールしておくと、Extension Manager を立ち上げた際、拡張機能のアップデートを確認できるようになっています。(アップデートを確認するよう、拡張機能をパッケージングする時に設定していれば、ですが)
ということで、基本的に CS5 以上の方は zxp 形式、それ未満の方は mxp 形式をお使いになるのが良いと思います。( CS5 以上 CS6 以下はどちらでも使えますが、CC から zxp 形式のみとなりました)
NewerOlder