keymacro4Mac ¤Î¥Ð¥Ã¥¯¥¢¥Ã¥×¥½¡¼¥¹(No.3)


[[AppleScriptÆþÌç>AppleScript]] > ´Ê°×¥­¡¼¥Ü¡¼¥É¥Þ¥¯¥í for Mac OS X 

#title("´Ê°×¥­¡¼¥Ü¡¼¥É¥Þ¥¯¥í for Mac OS X")

#ref(https://farm3.staticflickr.com/2634/3971523437_03103a985e.jpg)

[[Photo by Doña Tecla via Flickr:https://www.flickr.com/photos/64119933@N00/3972290332]]

Javascript / AppleScript¤ÇºîÀ®¤·¤¿¡¢´Ê°×¥­¡¼¥Ü¡¼¥É¥Þ¥¯¥í¤È¤¤¤¦¤«¡¢¿Í´Ö¤ÎÂؤï¤ê¤Ë¥­¡¼ÆþÎϤòºÆ¸½¤¹¤ë¥×¥í¥°¥é¥à¤Ç¤¹¡£

¤Á¤ç¤¤¤ÈMac¤Ç»Å»ö¤ò¤¹¤ë¤³¤È¤Ë¤Ê¤ê¡¢¤³¤¦¤¤¤¦¤Î¤¬É¬Íפˤʤ俤ó¤À¤±¤É¡¢¼ê¤´¤í¤Ê¤¬¸«¤Ä¤«¤é¤Ê¤«¤Ã¤¿¤Î¤Çºî¤Ã¤Æ¤ß¤Þ¤·¤¿¡£

AppleScript¤Î¥¹¥¯¥ê¥×¥È¥¨¥Ç¥£¥¿¤Ç¤Ï¡¢Javascript¤âÆ°¤¯¤Î¤Ç¡¢¤½¤ì¤òÍøÍѤ·¤Æ¤¤¤Þ¤¹¡£

·è¤·¤Æ¡¢Â¿µ¡Ç½¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¡£

¤â¤Ã¤ÈÎɤ¤ÊýË¡¤¬¤¢¤ì¤Ð¡¢¤¼¤Ò¶µ¤¨¤Æ¤¯¤À¤µ¤¤¡£> [[@ycatch:https://twitter.com/y_catch]]

#contents

* ÍÑÅÓ [#f739524f]

¥Ö¥é¥¦¥¶¤ÎÁªÂòÃæ¤Î¥Õ¥©¡¼¥à¤Ë¡¢»ØÄꤷ¤¿Ê£¿ô¹Ô¤Î¥Æ¥­¥¹¥È¤ò¼«Æ°Åª¤ËÆþÎϤ·¤Þ¤¹¡£

¥­¡¼ÆþÎϤÎÍͻҤòÆ°²è¥­¥ã¥×¥Á¥ã¤¹¤ë¤¿¤á¤ËºîÀ®¤·¤¿¤Î¤Ç¡¢£±Ê¸»ú¤º¤ÄÆþÎϤ·¤Æ¤¤¤¯¤è¤¦¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£

* ¥¹¥¯¥ê¥×¥È¥³¡¼¥É¤ÎÇÛÉÛÀè [#o6a799a7]

²¼µ­¤«¤éÆþ¼ê¤·¤Æ¤¯¤À¤µ¤¤¡£

-[[Gist:https://gist.github.com/ycatch/eaef63716906d73b350a]]

* µ¯Æ°¤¹¤ë [#dd4c6953]

- ¥Ö¥é¥¦¥¶¤òµ¯Æ°¤·¤Æ¡¢¥Õ¥©¡¼¥à¤òÁªÂò¤·¤Æ¤ª¤­¤Þ¤¹¡£
- ¥¹¥¯¥ê¥×¥È¥¨¥Ç¥£¥¿¤òΩ¤Á¾å¤²¤Þ¤¹¡£
- Javascript¤òÁªÂò¤·¤Æ¤ª¤­¤Þ¤¹¡£
- Æþ¼ê¤·¤¿¥¹¥¯¥ê¥×¥È¥³¡¼¥É¤ò¥¹¥¯¥ê¥×¥È¥¨¥Ç¥£¥¿¤ËŽ¤êÉÕ¤±¤Þ¤¹¡£
- ¥¹¥¯¥ê¥×¥È¤ò¼Â¹Ô¤·¤Þ¤¹¡£

* ¥Þ¥¯¥í¤Î½ñ¤­Êý [#o408a556]

- ¥­¡¼ÆþÎϤ·¤¿¤¤Ê¸»úÎó¤Ï¡¢¥¹¥¯¥ê¥×¥È¥³¡¼¥É¤Îcode_lineÊÑ¿ô¤ËÇÛÎó¤È¤·¤Æµ­½Ò¤·¤Æ¤ª¤­¤Þ¤¹¡£

** ¥µ¥ó¥×¥ë [#qadd7cf3]

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

¥¹¥¯¥ê¥×¥È¥³¡¼¥É¤ò¼Â¹Ô¤¹¤ë¤È¡¢¼¡¤Î¤è¤¦¤ËÆþÎϤµ¤ì¤Þ¤¹¡£

 /* hello world */
 /* ¤³¤ó¤Ë¤Á¤Ï world */
 print("hello world")

* ¥³¥Þ¥ó¥É [#b99e7a0d]

¼¡¤Îʸ»ú¤ò´Þ¤á¤Æ¤ª¤¯¤È¡¢³Æ¥­¡¼¤ÎÆþÎϤòºÆ¸½¤·¤Þ¤¹¡£

- ¡Ö|¡× ÆüËܸìÊÑ´¹ON/OFF
- ¡Ö^¡× ÆüËܸìÊÑ´¹ON¤Î¤È¤­¡¢ÊÑ´¹¤ò³ÎÄꤹ¤ë

ÉÔ­¤·¤Æ¤¤¤ë¥­¡¼¤¬¤¢¤ë¡¢µ¡¼ï¤Ë¤è¤Ã¤Æ¥­¡¼¥³¡¼¥É¤¬°ã¤¦¤Ê¤ó¤Æ¤³¤È¤¬¤¢¤ì¤Ð¡¢¤¤¤¤´¶¤¸¤Ë²þÎɤ·¤Æ¤¯¤À¤µ¤¤¡£

** »²¹Í¡§Mac¤Î¥­¡¼¥³¡¼¥É [#p0223df5]

- ¶õÇò¥­¡¼    49 
- ²þ¹Ô¥­¡¼    76
- ¥¿¥Ö¥­¡¼    48

- ±Ñ¿ô¥­¡¼    102
- ¤«¤Ê¥­¡¼    104

-[[Hys.LOG : Mac ¤Î¥­¡¼¥³¡¼¥É 2012 (Full Keyboard):http://hyslog.com/blog/2012/06/25/569]]

¥È¥Ã¥×   °ìÍ÷ ñ¸ì¸¡º÷ ºÇ½ª¹¹¿·   ¥Ø¥ë¥×   ºÇ½ª¹¹¿·¤ÎRSS