AppleScript > ʰץܡɥޥ for Mac OS X

3971523437_03103a985e.jpg

Photo by Doña Tecla via Flickr

Javascript / AppleScriptǺʰץܡɥޥȤʹ֤ؤ˥ϤƸץǤ

礤MacǻŻ򤹤뤳ȤˤʤꡢΤɬפˤʤäɡꤴʤĤʤäΤǺäƤߤޤ

AppleScriptΥץȥǥǤϡJavascriptưΤǡѤƤޤ

褷ơ¿ǽǤϤޤ

äɤˡСҶƤ> @ycatch

֥饦ΥեˡꤷʣԤΥƥȤưŪϤޤ

ϤͻҤư襭ץ㤹뤿˺ΤǡʸϤƤ褦ˤʤäƤޤ

оݥץ

оݥץڤؤˤϡbrowserѿͤ򲼵ѹƤ

  • Google Chrome(ǥե)
  • Safari
  • Terminal
var browser = "Google Chrome"; // Set your browser "Safari"

ץȥɤ

顢ץȥǥإԥڤŽդƤ

ư

  • ֥饦ươե򤷤Ƥޤ
  • ץȥǥΩ夲ޤ
  • Javascript򤷤Ƥޤ
  • ꤷץȥɤ򥹥ץȥǥŽդޤ
  • ץȤ¹Ԥޤ

ޥν

  • Ϥʸϡץȥɤcode_lineѿȤƵҤƤޤ
  • ƹԤϥ󥰥륯ȤǰϤߡԤȤ˥ޤǶڤޤ

ץ

var code_lines = [
	'/* hello world */',
	'/* |sekainominasann,konnnitiha_^| */',
	'print("hello world")']

ץȥɤ¹ԤȡΤ褦Ϥޤ

/* hello world */
/* γ󡢤ˤ */
print("hello world")

Ѵꡢܡɥޥư᤹ϡ_=^=פȥȤƤ

ޥ

ʸޤƤȡƥϤƸޤ

  • | ܸѴON/OFF
  • ܸѴONΤȤ
    • _ Ѵ
    • ^ Ѵꤹ
    • $
    • >
    • % delete
    • \ TAB
    • =

RubyΥ֥åѿǡ|פѤϡ̤ε(\)֤Ƥ

ưˤĤ

Ϥʸˤäơ̾ΥܡϤȰۤʤư򤹤礬ޤ ʾϡΥ򥭡ɤϤ褦ˡɤƤߤƤ

ޤ­Ƥ륭Ȥˤäƥɤ㤦ȤʤƤȤС˲ɤƤ

͡MacΥ

  • 򥭡 49
  • ԥ 76
  • ֥ 48
  • ѿ 102
  • ʥ 104

ޥ

ʸϤΥԡ

ñ̤ꤷޤ

var key_delay = 0.08;

ԤΥԡ

delayοͤľܽޤ

	delay(0.5); // 
	if (j < len -1) {
		sys.keyCode(76);	// Enter
		delay(0.8); // Ը
	}

  ȥå   ʬ Хåå   ñ측 ǽ   إ   ǽRSS
źեե: filescript.txt 453 [ܺ]
Last-modified: 2017-06-14 () 09:26:59 (797d)