{"id":2272,"date":"2014-04-10T22:50:06","date_gmt":"2014-04-10T13:50:06","guid":{"rendered":"http:\/\/oohito.com\/nqthm\/?p=2272"},"modified":"2014-04-10T22:50:06","modified_gmt":"2014-04-10T13:50:06","slug":"scratch-1-4%e3%81%a7%e3%83%96%e3%83%ad%e3%83%83%e3%82%af%e3%82%92%e8%bf%bd%e5%8a%a0%e3%81%99%e3%82%8b%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab%e7%b6%9a%e3%81%8d","status":"publish","type":"post","link":"https:\/\/oohito.com\/nqthm\/archives\/2272","title":{"rendered":"Scratch 1.4\u3067\u30d6\u30ed\u30c3\u30af\u3092\u8ffd\u52a0\u3059\u308b\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb(\u7d9a\u304d)"},"content":{"rendered":"<p><a href=\"http:\/\/oohito.com\/nqthm\/archives\/2243\" title=\"Scratch 1.4\u3067\u30d6\u30ed\u30c3\u30af\u3092\u8ffd\u52a0\u3059\u308b\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\">\u524d\u56de\u306e\u30a8\u30f3\u30c8\u30ea<\/a>\u306f\u601d\u3063\u305f\u3088\u308a\u30a2\u30af\u30bb\u30b9\u304c\u3042\u3063\u305f\u306e\u3067\u88dc\u8db3\u3057\u3066\u304a\u304f\u3002<br \/>\n\u30ea\u30b9\u30c8\u3092\u6271\u3046\u30d6\u30ed\u30c3\u30af\u3092\u4f5c\u308b\u5834\u5408\u3001\u30d6\u30ed\u30c3\u30af\u8ffd\u52a0\u306e\u30e1\u30bd\u30c3\u30c9\u306e\u4fee\u6b63\u3068\u3001\u30ea\u30b9\u30c8\u51e6\u7406\u3092\u884c\u3046\u30e1\u30bd\u30c3\u30c9\u306e\u8ffd\u52a0\u3060\u3051\u3067\u306f\u5341\u5206\u3067\u306f\u306a\u3044\u3002\u305d\u306e\u4ed6\u306b\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u5024\u3068\u3057\u3066\u30ea\u30b9\u30c8\u540d\u3092\u81ea\u52d5\u7684\u306b\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u3068\u3001\u8981\u7d20\u306e\u4f4d\u7f6e\u3092\u8868\u3059\u5f15\u6570\u306b\u6570\u5024\u4ee5\u5916\u304c\u6307\u5b9a\u3055\u308c\u305f\u6642\u306e\u51e6\u7f6e\u3092\u884c\u3046\u5fc5\u8981\u304c\u3042\u308b\u3002<br \/>\n\u305d\u306e\u8fba\u308a\u306f\u3001\u524d\u56de\u3082\u53c2\u8003\u306b\u3057\u305f&#8217;replace item&#8217;\u3092\u771f\u4f3c\u3057\u306a\u304c\u3089\u5bfe\u5fdc\u3057\u3066\u3044\u304f\u3053\u3068\u306b\u3059\u308b\u3002<br \/>\n<!--more--><\/p>\n<h2>blockSpecs\u304b\u3089\u305f\u3069\u308b<\/h2>\n<p>\u51fa\u767a\u70b9\u306f\u3001ScriptableScratchMorph\u306e\u30af\u30e9\u30b9\u30e1\u30bd\u30c3\u30c9\u3067\u3042\u308bblockSpecs\u3067\u3042\u308b\u3002<br \/>\n\u4eca\u56de\u306f\u30ef\u30fc\u30af\u30b9\u30da\u30fc\u30b9\u3092\u4f7f\u3044\u306a\u304c\u3089\u4f5c\u696d\u3092\u9032\u3081\u308b\u306e\u3067\u3001\u307e\u305a\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u3092\u30af\u30ea\u30c3\u30af\u3057World\u30e1\u30cb\u30e5\u30fc\u304b\u3089open&#8230;\u3092\u9078\u3073workspace\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u30ef\u30fc\u30af\u30b9\u30da\u30fc\u30b9\u30a6\u30a3\u30f3\u30c9\u30a6\u3092\u8868\u793a\u3055\u305b\u308b\u3002<br \/>\n\u30ef\u30fc\u30af\u30b9\u30da\u30fc\u30b9\u306b\u4ee5\u4e0b\u3092\u5165\u529b\u3059\u308b\u304b\u30b3\u30d4\u30fc\uff06\u30da\u30fc\u30b9\u30c8\u3057\u305f\u3089\u3001\u5168\u4f53\u3092\u9078\u629e\u3057\u305f\u5f8c\u3067Command+d(ALT+d)\u3092\u62bc\u3059\u3002<\/p>\n<pre>Browser fullOnClass: ScriptableScratchMorph class selector: #blockSpecs.<\/pre>\n<p>\u3059\u308b\u3068\u5f53\u8a72\u30e1\u30bd\u30c3\u30c9\u3092\u8868\u793a\u3057\u305f\u72b6\u614b\u3067\u30b7\u30b9\u30c6\u30e0\u30d6\u30e9\u30a6\u30b6\u304c\u8d77\u52d5\u3055\u308c\u308b\u3002<br \/>\n\u30e1\u30bd\u30c3\u30c9\u306e\u4e0b\u6bb5\uff08\u30b3\u30fc\u30c9\u30da\u30a4\u30f3\uff09\u3092\u30b9\u30af\u30ed\u30fc\u30eb\u3055\u305b\u3066\u4e0b\u306e\u65b9\u3092\u8868\u793a\u3055\u305b\u308b\u3068\u3001\u524d\u56de\u306e\u30a8\u30f3\u30c8\u30ea\u3067\u8ffd\u52a0\u3057\u305f\u90e8\u5206\u304c\u73fe\u308c\u308b\u3002<\/p>\n<pre>('replace item %i of %L with %s'  -  setLine:ofList:to: 1 'list' 'thing')\n('swap item %i of %L for item %i'  -  swapLine:ofList:for: 1 'list' 1)<\/pre>\n<p>\u3053\u3053\u3067\u3001&#8217;replace item&#8217;\u306e\u30d6\u30ed\u30c3\u30af\u306f\u3001#setLine:ofList:to:\u3068\u3044\u3046\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u9001\u308a\u3001\u524d\u56de\u8ffd\u52a0\u3057\u305f&#8217;swap item&#8217;\u306e\u30d6\u30ed\u30c3\u30af\u306f\u3001#swapLine:ofList:for:\u3068\u3044\u3046\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u9001\u308b\u3053\u3068\u3092\u793a\u3057\u3066\u3044\u308b\u3002<br \/>\n\u307e\u305f\u3001&#8217;replace item&#8217;\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u5024\u3068\u3057\u3066\u3001\u7b2c\u4e00\u30d1\u30e9\u30e1\u30fc\u30bf\u306b1\u3001\u7b2c\u4e8c\u30d1\u30e9\u30e1\u30fc\u30bf\u306b&#8217;list&#8217;\u3001\u7b2c\u4e09\u30d1\u30e9\u30e1\u30fc\u30bf\u306b&#8217;thing&#8217;\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u308b\u3002<br \/>\n#setLine:ofList:to:\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u3069\u306e\u30e1\u30bd\u30c3\u30c9\u304b\u3089\u9001\u3089\u308c\u3066\u3044\u308b\u304b\u306f\u3001\u4ee5\u4e0b\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u5f0f\u3067\u8abf\u3079\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002<\/p>\n<pre>Smalltalk browseAllCallsOn: #setLine:ofList:to:.<\/pre>\n<p>\u4e0a\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u5f0f\u3092\u9078\u629e\u3057\u3066Command+d(ALT+d)\u3092\u62bc\u3059\u3068\u3001#setLine:ofList:to:\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u9001\u3063\u3066\u3044\u308b\u30e1\u30bd\u30c3\u30c9\u306e\u4e00\u89a7\u304c\u6c34\u8272\u306e\u30a6\u30a3\u30f3\u30c9\u30a6\u3067\u793a\u3055\u308c\u308b\u3002<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/oohito.com\/nqthm\/wp-content\/uploads\/2014\/04\/Screen-Shot-2014-04-10-at-19.41.59-1-1.png\" alt=\"senders of #setLine:ofList:to:\" width=\"461\" height=\"128\" class=\"alignnone size-full wp-image-2273\" \/><br \/>\n\u30ea\u30b9\u30c8\u306b\u8868\u793a\u3055\u308c\u3066\u3044\u308b\u306e\u306f\u4ee5\u4e0b\u306e\uff13\u3064\u3067\u3042\u308b\u3002\uff08\u8aac\u660e\u306e\u90fd\u5408\u4e0a\u3001\u8868\u793a\u3057\u305f\u9806\u5e8f\u3068\u5909\u3048\u3066\u3044\u308b\uff09<\/p>\n<pre>ScriptableScratchMorph class blockSpecs\nScriptableScratchMorph defaultArgsFor:\nCommandBlockMorph coerceArgs:<\/pre>\n<p>\uff11\u3064\u76ee\u306f\u5148\u307b\u3069\u8868\u793a\u3057\u3066\u3044\u305fScriptableScratchMorph\u30af\u30e9\u30b9\u306eblockSpecs\u30e1\u30bd\u30c3\u30c9\u3067\u3042\u308b\u3002\u6b8b\u308a\u306e\u3046\u3061\uff12\u3064\u76ee\u306eScriptableScratchMorph\u30af\u30e9\u30b9\u306edefaultArgsFor:\u304c\u30c7\u30d5\u30a9\u30eb\u30c8\u5024\u306e\u8a2d\u5b9a\u306b\u95a2\u4fc2\u304c\u3042\u308b\u3002<\/p>\n<h2>\u30c7\u30d5\u30a9\u30eb\u30c8\u5024\u306e\u8a2d\u5b9a<\/h2>\n<p>\u6c34\u8272\u306e\u4e0a\u6bb5\u3067ScriptableScratchMorph\u30af\u30e9\u30b9\u306edefaultArgsFor:\u30e1\u30bd\u30c3\u30c9\u3092\u9078\u3076\u3068\u3001\u4e0b\u6bb5\u306b\u30e1\u30bd\u30c3\u30c9\u306e\u5185\u5bb9\u304c\u8868\u793a\u3055\u308c\u308b\u306e\u3067\u898b\u3066\u307f\u308b\u3002<br \/>\n\u304b\u306a\u308a\u9577\u3044\u30e1\u30bd\u30c3\u30c9\u3060\u304c\u30b9\u30af\u30ed\u30fc\u30eb\u3057\u3066\u3044\u304f\u3068\u6700\u5f8c\u306e\u65b9\u306b\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u90e8\u5206\u304c\u3042\u308b\u3002<\/p>\n<pre>#setLine:ofList:to: = sel ifTrue: [\n  defaultArgs size >= 3 ifTrue: [\n    defaultArgs at: 2 put: self defaultListName.\n    defaultArgs at: 3 put: (defaultArgs at: 3) localized]].<\/pre>\n<p>\u4e0a\u8a18\u304csetLine:ofList:to:\u3064\u307e\u308a&#8217;replace item&#8217;\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u5024\u306e\u8a2d\u5b9a\u306b\u95a2\u3059\u308b\u30b3\u30fc\u30c9\u3067\u3042\u308b\u3002\u5143\u306eblockSpecs\u3067\u306f\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u5024\u304c\u8a2d\u5b9a\u3055\u308c\u3066\u304a\u308a\u3001\u4f55\u3082\u3057\u306a\u3051\u308c\u3070\u8a2d\u5b9a\u3055\u308c\u305f\u5024\u304c\u7528\u3044\u3089\u308c\u308b\u3002\u3057\u304b\u3057\u3001\u5b9f\u969b\u306bScratch\u3092\u52d5\u304b\u3057\u3066&#8217;replace item&#8217;\u306e\u30d6\u30ed\u30c3\u30af\u3092\u4f7f\u3063\u3066\u307f\u308b\u3068\u3001\u7b2c\u4e8c\u30d1\u30e9\u30e1\u30fc\u30bf\u306e\u30ea\u30b9\u30c8\u306e\u540d\u524d\u306f\u3001\u5b9a\u7fa9\u6e08\u307f\u306e\u30ea\u30b9\u30c8\u306e\u540d\u524d\u306b\u7f6e\u304d\u63db\u3048\u3089\u308c\u3066\u3044\u308b\u3002\u307e\u305f\u65e5\u672c\u8a9e\u3067\u8868\u793a\u3055\u305b\u305f\u5834\u5408\u3001\u7b2c\u4e09\u30d1\u30e9\u30e1\u30fc\u30bf\u306e\u5024\u306f\u300cthing\u300d\u3067\u306f\u306a\u304f\u3001\u300c\u306a\u306b\u304b\u300d\u3068\u3044\u3046\u65e5\u672c\u8a9e\u306b\u7f6e\u304d\u63db\u308f\u3063\u3066\u3044\u308b\u3002<br \/>\n\u4e0a\u8a18\u306e\u30b3\u30fc\u30c9\u306f\u3001\u30d6\u30ed\u30c3\u30af\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u5024\u306e\u5185\u5bb9\u3092\u5909\u66f4\u3059\u308b\u51e6\u7406\u3092\u884c\u3063\u3066\u3044\u308b\u3002\uff13\u884c\u76ee\u3067\u306f\u7b2c\uff12\u30d1\u30e9\u30e1\u30fc\u30bf\u306e\u30ea\u30b9\u30c8\u540d\u3092\u7f6e\u304d\u63db\u3048\u3001\uff14\u884c\u76ee\u3067\u306f\u7b2c\uff13\u30d1\u30e9\u30e1\u30fc\u30bf\u306e\u5024\u306e\u30ed\u30fc\u30ab\u30e9\u30a4\u30ba\u3092\u884c\u3063\u3066\u3044\u308b\u3002<br \/>\n&#8216;swap item&#8217;\u306b\u5bfe\u3057\u3066\u3082\u540c\u69d8\u306e\u51e6\u7406\u3092\u884c\u3046\u3002&#8217;swap item&#8217;\u3067\u306fswapLine:ofList:for:\u3068\u3044\u3046\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u7528\u3044\u308b\u306e\u3067\u3001\u4e0a\u8a18\u306e\u30b3\u30fc\u30c9\u3092\u30b3\u30d4\u30fc\uff06\u30da\u30fc\u30b9\u30c8\u3057\u3066\u3001\u5185\u5bb9\u3092\u4e00\u90e8\u7f6e\u304d\u63db\u3048\u308b\u3002\u307e\u305f\u3001&#8217;replace item&#8217;\u3068\u7570\u306a\u308a\u3001\u7b2c\uff13\u30d1\u30e9\u30e1\u30fc\u30bf\u306f\u8981\u7d20\u306e\u4f4d\u7f6e\u306a\u306e\u3067\u30ed\u30fc\u30ab\u30e9\u30a4\u30ba\u3059\u308b\u5fc5\u8981\u306f\u306a\u3044\u3002\u4ee5\u4e0a\u3092\u3075\u307e\u3048\u308b\u3068\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30b3\u30fc\u30c9\u3092\u8ffd\u52a0\u3059\u308b\u3053\u3068\u306b\u306a\u308b\u3002<\/p>\n<pre>#swapLine:ofList:for: = sel ifTrue: [\n  defaultArgs size >= 2 ifTrue: [\n    defaultArgs at: 2 put: self defaultListName.<\/pre>\n<p>\u3053\u306e\u3088\u3046\u306b\u3001\u7b2c\uff12\u30d1\u30e9\u30e1\u30fc\u30bf\u306e\u307f\u5b9f\u969b\u306e\u30ea\u30b9\u30c8\u540d\u3067\u7f6e\u304d\u63db\u3048\u308b\u3088\u3046\u306b\u3057\u3066\u3044\u308b\u3002\u3053\u306e\uff13\u884c\u3092\u5148\u307b\u3069\u306esetLine:ofList:to:\u306e\u5f8c\u306b\u8ffd\u52a0\u3057\u3001Command+s(ALT+s)\u3067\u4fdd\u5b58\u3059\u308c\u3070\u826f\u3044\u3002<\/p>\n<h2>\u8981\u7d20\u306e\u4f4d\u7f6e\u3092\u3042\u3089\u308f\u3059\u30d1\u30e9\u30e1\u30fc\u30bf\u306e\u81ea\u52d5\u5909\u63db\u306e\u6291\u5236<\/h2>\n<p>\u5b9f\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u5024\u306e\u8abf\u6574\u3060\u3051\u3067\u306f\u3046\u307e\u304f\u3044\u304b\u306a\u3044\u5834\u5408\u304c\u3042\u308b\u3002&#8217;swap item&#8217;\u306e\u30d6\u30ed\u30c3\u30af\u3067\u306f\u7b2c\uff11\u30d1\u30e9\u30e1\u30fc\u30bf\u3068\u7b2c\uff13\u30d1\u30e9\u30e1\u30fc\u30bf\u306b\u8981\u7d20\u306e\u4f4d\u7f6e\u3092\u6307\u5b9a\u3059\u308b\u304c\u3001\u305d\u3053\u306b\u306f\u6570\u5024\u3060\u3051\u3067\u306a\u304fany\u3084last\uff08\u65e5\u672c\u8a9e\u3067\u306f\u300c\u3069\u308c\u304b\u300d\u3084\u300c\u6700\u5f8c\u300d\uff09\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002<br \/>\n\u4eca\u306e\u72b6\u614b\u3067\u8981\u7d20\u306e\u4f4d\u7f6e\u306b\u305d\u308c\u3089\u3092\u6307\u5b9a\u3059\u308b\u3068\u4e88\u671f\u3057\u305f\u3088\u3046\u306a\u52d5\u4f5c\u3092\u3057\u306a\u3044\u3002\u3053\u308c\u306f\u3001\u6570\u5024\u3092\u671f\u5f85\u3059\u308b\u30d1\u30e9\u30e1\u30fc\u30bf\u306b\u5bfe\u3057\u3066\u3001Scratch\u304c\u81ea\u52d5\u7684\u306b\u6570\u5024\u3078\u5909\u63db\u3057\u3066\u3057\u307e\u3046\u3053\u3068\u306b\u3088\u308b\u3002&#8217;replace item&#8217;\u3067\u305d\u306e\u3088\u3046\u306b\u306a\u3089\u306a\u3044\u306e\u306f\u3001\u81ea\u52d5\u7684\u306a\u5909\u63db\u3092\u6b62\u3081\u3066\u3044\u308b\u304b\u3089\u3067\u3042\u308b\u3002<br \/>\n\u3053\u308c\u3089\u306e\u51e6\u7406\u3092\u884c\u3063\u3066\u3044\u308b\u306e\u306f\u3001\u6700\u521d\u306e\u65b9\u3067\u8abf\u3079\u305fsetLine:ofList:to:\u306e\u547c\u3073\u51fa\u3057\u5143\u306e\u30e1\u30bd\u30c3\u30c9\u306e\uff13\u3064\u76ee\u3067\u3042\u308bCommandBlockMorph\u30af\u30e9\u30b9\u306ecoerceArgs:\u30e1\u30bd\u30c3\u30c9\u304c\u884c\u3063\u3066\u3044\u308b\u3002\u3053\u306e\u30e1\u30bd\u30c3\u30c9\u3092\u8abf\u3079\u3066\u307f\u3088\u3046\u3002<\/p>\n<pre>Browser fullOnClass: CommandBlockMorph selector: #coerceArgs:.<\/pre>\n<p>\u30ef\u30fc\u30af\u30b9\u30da\u30fc\u30b9\u3067\u4e0a\u8a18\u3092\u9078\u629e\u5f8c\u3001Command+d(ALT+d)\u3092\u62bc\u305b\u3070\u3001\u30b7\u30b9\u30c6\u30e0\u30d6\u30e9\u30a6\u30b6\u304c\u73fe\u308c\u308b\u3002\u305d\u306e\u5185\u5bb9\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u3082\u306e\u3067\u3042\u308b\u3002<\/p>\n<pre>coerceArgs: argList\n    \"Answer an arugments array in which all arguments that should be numbers have been coerced to numbers if necessary.\"\n    | args specialCommands numFlags |\n    args _ argList asArray.\n    specialCommands _ #(\n        append:toList: deleteLine:ofList: getLine:ofList: insert:at:ofList: list:contains: setLine:ofList:to:\n        lookLike: showBackground:\n        playSound: doPlaySoundAndWait\n        setVar:to:).\n    (specialCommands includes: selector) ifFalse: [\n        \"ensure args are numbers where numbers are expected\"\n        numFlags _ self numberArgFlags.\n        1 to: args size do: [:i |\n            (numFlags at: i) ifTrue: [args at: i put: (args at: i) asNumberNoError]]].\n    ^ args<\/pre>\n<p>\u3053\u306e\u30e1\u30bd\u30c3\u30c9\u3067\u306f\u30d6\u30ed\u30c3\u30af\u306b\u4e0e\u3048\u3089\u308c\u308b\u5f15\u6570\u304c\u6570\u5024\u3092\u671f\u5f85\u3057\u3066\u3044\u308b\u5834\u5408\u3001\u5f15\u6570\u306e\u5185\u5bb9\uff08\u6587\u5b57\u5217\u306a\u3069\u306e\u5834\u5408\u3082\u3042\u308b\uff09\u3092\u6570\u5024\u306b\u5909\u63db\u3059\u308b\u3068\u3044\u3046\u51e6\u7406\u3092\u884c\u3063\u3066\u3044\u308b\u3002\u305f\u3060\u3057\u3001\u5fc5\u305a\u3057\u3082\u6570\u5024\u3067\u306a\u3044\u3082\u306e\u3092\u671f\u5f85\u3059\u308b\u30d6\u30ed\u30c3\u30af\u3082\u3042\u308b\u305f\u3081\u3001\u305d\u308c\u3089\u306b\u3064\u3044\u3066\u306f\u4f8b\u5916\u3068\u3057\u3066\u6570\u5024\u3078\u306e\u5909\u63db\u3092\u884c\u308f\u306a\u3044\u3088\u3046\u306b\u3057\u3066\u3044\u308b\u3002<br \/>\n\u4e0a\u8a18\u306e\u30e1\u30bd\u30c3\u30c9\u3067\u306f\u3001\u4f8b\u5916\u3068\u306a\u308b\u30e1\u30c3\u30bb\u30fc\u30b8\u3092specialCommands\u3068\u3044\u3046\u5909\u6570\u3067\u7ba1\u7406\u3057\u3066\u3044\u308b\u3002&#8217;replace with&#8217;\u3067\u306f\u8981\u7d20\u306e\u4f4d\u7f6e\u3068\u3057\u3066\u5f37\u5236\u7684\u306b\u6570\u5024\u3078\u306e\u5909\u63db\u3092\u884c\u308f\u306a\u3044\u3088\u3046\u306b\u3059\u308b\u305f\u3081\u3001&#8217;replace with&#8217;\u306b\u5bfe\u5fdc\u3059\u308b\u30e1\u30c3\u30bb\u30fc\u30b8\u3067\u3042\u308bsetLine:ofList:to:\u304c\u305d\u306e\u5909\u6570\u306b\u542b\u307e\u308c\u3066\u3044\u308b\u3002<br \/>\n&#8216;swap item&#8217;\u3082\uff12\u30ab\u6240\u3067\u8981\u7d20\u306e\u4f4d\u7f6e\u3092\u6307\u5b9a\u3057\u3066\u304a\u308a\u3001\u305d\u306e\u6271\u3044\u306f&#8217;replace with&#8217;\u3068\u540c\u3058\u3067\u3042\u308b\u306e\u3067\u3001\u540c\u69d8\u306bspecialCommands\u306b\u542b\u3081\u308b\u5fc5\u8981\u304c\u3042\u308b\u305f\u3081\u3001\u4e0a\u8a18\u306e\u30b3\u30fc\u30c9\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5909\u66f4\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3002\uff08specialCommands\u306e\u4ee3\u5165\u306e\u90e8\u5206\u3060\u3051\u629c\u7c8b\uff09<\/p>\n<pre>    specialCommands _ #(\n        append:toList: deleteLine:ofList: getLine:ofList: insert:at:ofList: list:contains: setLine:ofList:to:\n        swapLine:ofList:for:\n        lookLike: showBackground:\n        playSound: doPlaySoundAndWait\n        setVar:to:).<\/pre>\n<p>\u4e0a\u8a18\u306e\u5909\u66f4\u3092\u52a0\u3048\u305f\u5f8c\u3001Command+d(ALT+d)\u3092\u62bc\u3057\u3066\u4fdd\u5b58\u3059\u308c\u3070\u3001\u8981\u7d20\u306e\u4f4d\u7f6e\u3068\u3057\u3066last\u3084any\u3092\u6307\u5b9a\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u56de\u306e\u30a8\u30f3\u30c8\u30ea\u306f\u601d\u3063\u305f\u3088\u308a\u30a2\u30af\u30bb\u30b9\u304c\u3042\u3063\u305f\u306e\u3067\u88dc\u8db3\u3057\u3066\u304a\u304f\u3002 \u30ea\u30b9\u30c8\u3092\u6271\u3046\u30d6\u30ed\u30c3\u30af\u3092\u4f5c\u308b\u5834\u5408\u3001\u30d6\u30ed\u30c3\u30af\u8ffd\u52a0\u306e\u30e1\u30bd\u30c3\u30c9\u306e\u4fee\u6b63\u3068\u3001\u30ea\u30b9\u30c8\u51e6\u7406\u3092\u884c\u3046\u30e1\u30bd\u30c3\u30c9\u306e\u8ffd\u52a0\u3060\u3051\u3067\u306f\u5341\u5206\u3067\u306f\u306a\u3044\u3002\u305d\u306e\u4ed6\u306b\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u5024\u3068\u3057\u3066\u30ea\u30b9\u30c8\u540d\u3092\u81ea\u52d5&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,15,19],"tags":[],"class_list":["post-2272","post","type-post","status-publish","format-standard","hentry","category-scratch","category-squeak","category-tutorials"],"_links":{"self":[{"href":"https:\/\/oohito.com\/nqthm\/wp-json\/wp\/v2\/posts\/2272","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/oohito.com\/nqthm\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/oohito.com\/nqthm\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/oohito.com\/nqthm\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/oohito.com\/nqthm\/wp-json\/wp\/v2\/comments?post=2272"}],"version-history":[{"count":0,"href":"https:\/\/oohito.com\/nqthm\/wp-json\/wp\/v2\/posts\/2272\/revisions"}],"wp:attachment":[{"href":"https:\/\/oohito.com\/nqthm\/wp-json\/wp\/v2\/media?parent=2272"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/oohito.com\/nqthm\/wp-json\/wp\/v2\/categories?post=2272"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/oohito.com\/nqthm\/wp-json\/wp\/v2\/tags?post=2272"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}