ã¹ãã¼ãã¹ãã¼ã«ã¼ã§ Mac ãæä½ãããã¿ã´ã©ã¹ã¤ãã
ãããããªããã¯ãçµã¿åãããçµæãã³ã³ãã¥ã¼ã¿ãä»äºéå§ãã£ã¦ããã¨
— å³ä¸ (@yoshiori) 2020å¹´8æ5æ¥
é¨å±ã®é»æ°ãã¤ãã¦ãµã¼ãã¥ã¬ã¼ã¿ã®é»æºãå ¥ãã¿ã¤ã ã«ã¼ããæ¼ããã¦ã¸ã£ãºãæµããããã«ãªã
ãä»äºçµãããã£ã¦è¨ãã¨é»æ°ã¨ãµã¼ãã¥ã¬ã¼ã¿ã¨é³æ¥½ãæ¢ã¾ãã¿ã¤ã ã«ã¼ããæ¼ãã㦠Mac ãã¹ãªã¼ãã«å ¥ãããã«ãªã£ã
ã³ã³ãã¥ã¼ã¿ãä»äºçµãã
ã£ã¦è¨ãã¨é»æ°æ¶ãããæ風æ©ã¨ãããé³æ¥½æ¢ãããããããã«ãã¦ããã ãã©ãMac 㯠Sleep ãããããªãã¦æéã§ã¼ãããå ã£ã¦ããæ²ããæ°æã¡ã«ãªã£ã¦ãã
ã§ããªãã¨ãåºæ¥ãªãããªã£ã¦è²ã
試ãã¦ãã
Alexa ã« ãhey siri, Mac ãã¹ãªã¼ããã¦ãã£ã¦è¨ããã¦ãå®ç¾ã§ãããã ãã©ãiPhone ã iPad ã® siri ãåå¿ãã¡ãã£ããã§å¾®å¦ã ã£ãã
ã§ãããããèãããã ãã©ãifttt ã使ã£ã¦èªåã®ãã·ã³ã«ãªã«ãã¤ãã³ããèµ·ããããã°è¡ãããªãã¨ãèãã¦ãã*1
ã§ãifttt çµç±ã§ Dropbox ã® File ãæ´æ°ããã°è¯ããã¨ã«æ°ãã¤ããã
ãªã®ã§ããããªæãã®ããªã¬ã¼ç¨æãã¦*2
fswatch ãã¤ã³ã¹ãã¼ã«
$ brew install fswatch
Automator ã§ã·ã§ã«ã¹ã¯ãªããã®ã¢ããªä½ã£ã¦
/usr/local/bin/fswatch /Users/yoshiori/Dropbox/remote_command/sleep | xargs -n1 -I{} pmset sleepnow
Mac èµ·åæã«ãã®ã¢ããªãèµ·åããããã«ãããå®æã
ã¡ãã£ã¨ã¹ãªã¼ãã¾ã§æéããããã©å®æï¼
ã¤ãã³ãããªã¬ã¼ã«ãã¡ã¤ã«æ´æ°ä½¿ã£ã¦ãã ããªã®ã§ä»»æã®ã³ãã³ããä½ã§ãå®è¡ã§ãã¦ä¾¿å©ï¼ï¼ï¼ä¿ºã¯ä¼ç¤¾ã®éå¤ãçµã¿è¾¼ãã ï¼
*1:æåã¯ãã¼ã«ã«ã§ãµã¼ãç«ã¦ã¦ã¤ã³ã¿ã¼ãããã«å ¬éãã¦ããå©ã㨠sleep ããã¨ããèãããã ãã©ãæµç³ã«è®æãããï½
*2:TriggeredAt å ¥ãã¦ããã¨ãããã°ã«ä¾¿å©