{"id":2348,"date":"2015-12-12T13:46:01","date_gmt":"2015-12-12T04:46:01","guid":{"rendered":"http:\/\/mooa.net\/ap\/?p=2348"},"modified":"2020-05-29T13:05:26","modified_gmt":"2020-05-29T04:05:26","slug":"mac%ec%97%90%ec%84%9c-%eb%8b%a8%ec%b2%b4-%eb%ac%b8%ec%9e%90imessage-%eb%b3%b4%eb%82%b4%ea%b8%b0","status":"publish","type":"post","link":"https:\/\/mooa.net\/ap\/2348","title":{"rendered":"Mac\uc5d0\uc11c \ub2e8\uccb4 \ubb38\uc790\/iMessage \ubcf4\ub0b4\uae30"},"content":{"rendered":"<p>AppleScript\ub97c \uc774\uc6a9\ud574\uc11c Mac\uc5d0\uc11c \ub2e8\uccb4 \ubb38\uc790\/iMessage \ub97c \ubcf4\ub0bc \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<p>\uc800\ub294 \uadf8\ub0e5 \uc81c\uac00 \ud544\uc694\ud55c \uac83\ub9cc \uac1c\ubc1c\ud574\uc11c \uadf8 \ub54c \uadf8 \ub54c \uc0ac\uc6a9\ud558\ub294 \uc0dd\ud65c\uac1c\ubc1c\uc790\ub77c<\/p>\n<p>\ucf54\ub4dc\uac00 \ucd5c\uc801\ud654 \ub418\uc5b4 \uc788\uc9c0\ub3c4 \uc54a\uace0 \uae54\ub054(?)\ud558\uc9c0\ub3c4 \uc54a\uc9c0\ub9cc \ub2e4\ub978 \ubd84\ub4e4\uc5d0\uac8c\ub3c4 \ub3c4\uc6c0 \ub418\uc168\uc73c\uba74 \ud558\uace0 \uc62c\ub9bd\ub2c8\ub2e4.<\/p>\n<p>\uc800\ub294 \uadf8\ub0e5 \uc774\uc815\ub3c4\ub85c \ub9cc\uc871\ud574\uc11c \uc798 \uc0ac\uc6a9 \uc911\uc778\ub370 \uc874\uc798\ub4e4\uaed8\uc11c \ub9ce\uc774 \uace0\uccd0\uc8fc\uc2dc\ub9ac\ub77c \ubbff\uc2b5\ub2c8\ub2e4.<\/p>\n<p>AppleScript \ub4f1\ub85d\ud558\ub294 \uc0c1\uc138\ud55c \uc124\uba85\uc740 \ud558\ub2e8\uc5d0 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<p>\uc774 \ud398\uc774\uc9c0\ub294 iPhone \uc0ac\uc6a9\uc790\uac00 \ub9e5\uc5d0\uc11c Messages\uc571\uc744 \uc774\uc6a9\ud574\uc11c<\/p>\n<p>SMS, iMessage\ub97c \ubaa8\ub450 \uc218\uc2e0\/\uc1a1\uc2e0 \uc774\uc6a9\ud55c\ub2e4\ub294 \uac78 \uae30\ubcf8\uc73c\ub85c \ud558\uace0 \uc791\uc131\ub418\uc5c8\uc2b5\ub2c8\ub2e4.<\/p>\n<p>\uc544\ub798\ub294 \uc804\ud654\ubc88\ud638 \ud30c\uc77c\uc744 \uc774\uc6a9\ud574\uc11c SMS \/ iMessage\ub97c \ubcf4\ub0b4\ub294 source \uc785\ub2c8\ub2e4.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">on run {input, parameters}\n    \n    set listOfShows to {}\n    set Shows to paragraphs of (read POSIX file \"\/Users\/sel2\/tel2.txt\") -- \uc0ac\uc6a9\uc790 \ud648 \ubc11\uc5d0 \ubc14\ub85c \uc804\ud654\ubc88\ud638 \uc815\ub9ac\ub418\uc5b4 \uc788\ub294 txt \ud30c\uc77c\uc774\ub2e4. \n    repeat with nextLine in Shows\n        if length of nextLine is greater than 0 then\n            copy nextLine to the end of listOfShows\n        end if\n    end repeat\n    \n    set listdata to listOfShows\n    \n    display dialog the (count of listdata) --\ub514\ubc84\uae45 listdata\uc5d0 \uc800\uc7a5\ub41c \uc544\uc774\ud15c \uc218 \ud655\uc778\n    \n    set textMessage to \"-\ubaa8\uc784\uc77c\uc2dc : 12\/24 18\uc2dc -\uc7a5\uc18c : \ub2ec\ub098\ub77c \ud638\ud504\uc9d1 \uac10\uc0ac\ud569\ub2c8\ub2e4. \"\n    run application \"Messages\"\n    \n    tell application \"Messages\"\n        repeat with i from 1 to the count of listdata\n        \n            set this_item to item i of the listdata\n        \n            send textMessage to buddy this_item of (service 1 whose service type is iMessage)   -- iMessage \uc0ac\uc6a9\n            \n            --send textMessage to buddy this_item of service \"SMS\"  --SMS\ub85c \ubcf4\ub0bc \ub54c \uc0ac\uc6a9 \t\n            \n        end repeat\n    end tell\n    \n    return input\nend run<\/pre>\n<p>\uc544\ub798\ub294 clipboard(\uba54\ubaa8\ub9ac\uc5d0 \uc800\uc7a5\ub41c \uac83) \ub97c \ud65c\uc6a9\ud558\uc5ec\u00a0SMS \/ iMessage\ub97c \ubcf4\ub0b4\ub294 \u00a0source \uc785\ub2c8\ub2e4.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">on run {input, parameters}\n    \n    set listContents to get the clipboard\n    \n    set delimitedList to paragraphs of listContents\n    \n    --set AppleScript's text item delimiters to {return, \",\"}  \uc704\uc758 \uac83\uc744 \uc774\ud558 2\uc904\ub85c \ub300\uccb4 \uac00\ub2a5\n    --set delimitedList to every text item of listContents\n    \n    set textMessage to \"-\ubaa8\uc784\uc77c\uc2dc : 12\/24 18\uc2dc -\uc7a5\uc18c : \ub2ec\ub098\ub77c \ud638\ud504\uc9d1 \uac10\uc0ac\ud569\ub2c8\ub2e4. \"\n    \n    run application \"Messages\"\n    \n    tell application \"Messages\"\n    \n        repeat with phone_number in delimitedList\n            \n            set targetBuddy to phone_number as string\n        \n            send textMessage to buddy targetBuddy of (service 1 whose service type is iMessage)\n            --send textMessage to buddy targetBuddy of service \"SMS\n            \n            delay 0.5\n            \n        end repeat\n    end tell\n    \n    return input\n    \nend run<\/pre>\n<pre class=\"lang:applescript decode:true\" title=\"clipboard_sms.workflow\">\n\n\uc704\uc758 Apple Script\ub97c \ub9cc\ub4dc\ub294 \ubc29\ubc95\uacfc \uc0ac\uc6a9\ud558\ub294 \ubc29\ubc95\uc740 \uc544\ub798\uc640 \uac19\uc2b5\ub2c8\ub2e4.<\/pre>\n<p>Application \uc5d0\uc11c Automator (\uc624\ud1a0\uba54\uc774\ud130) \uc2e4\ud589\ud569\ub2c8\ub2e4.<\/p>\n<p><a href=\"http:\/\/mooa.net\/ap\/wp-content\/uploads\/2015\/12\/app.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2350\" src=\"http:\/\/mooa.net\/ap\/wp-content\/uploads\/2015\/12\/app.png\" alt=\"app\" width=\"542\" height=\"340\" srcset=\"https:\/\/mooa.net\/ap\/wp-content\/uploads\/2015\/12\/app.png 542w, https:\/\/mooa.net\/ap\/wp-content\/uploads\/2015\/12\/app-300x188.png 300w\" sizes=\"(max-width: 542px) 100vw, 542px\" \/><\/a><\/p>\n<p>\ubb38\uc11c \uc885\ub958 \uc911\uc5d0 Service\ub97c \uc120\ud0dd\ud569\ub2c8\ub2e4.<\/p>\n<p><a href=\"http:\/\/mooa.net\/ap\/wp-content\/uploads\/2015\/12\/choose.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-2351\" src=\"http:\/\/mooa.net\/ap\/wp-content\/uploads\/2015\/12\/choose-1024x984.png\" alt=\"choose\" width=\"960\" height=\"923\" srcset=\"https:\/\/mooa.net\/ap\/wp-content\/uploads\/2015\/12\/choose-1024x984.png 1024w, https:\/\/mooa.net\/ap\/wp-content\/uploads\/2015\/12\/choose-300x288.png 300w, https:\/\/mooa.net\/ap\/wp-content\/uploads\/2015\/12\/choose.png 1084w\" sizes=\"(max-width: 960px) 100vw, 960px\" \/><\/a><\/p>\n<p>\uc67c\ucabd\uc5d0\uc11c \uac80\uc0c9\uc744 script\ub85c \ud574\uc11c [Run AppleScript] \uc120\ud0dd\ud558\uace0 \uc6b0\uce21 \ud654\uba74\uc73c\ub85c Drag &amp; Drop \ud569\ub2c8\ub2e4.<\/p>\n<p><a href=\"http:\/\/mooa.net\/ap\/wp-content\/uploads\/2015\/12\/p1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-2352\" src=\"http:\/\/mooa.net\/ap\/wp-content\/uploads\/2015\/12\/p1-1024x476.png\" alt=\"p1\" width=\"960\" height=\"446\" srcset=\"https:\/\/mooa.net\/ap\/wp-content\/uploads\/2015\/12\/p1-1024x476.png 1024w, https:\/\/mooa.net\/ap\/wp-content\/uploads\/2015\/12\/p1-300x139.png 300w\" sizes=\"(max-width: 960px) 100vw, 960px\" \/><\/a><\/p>\n<p>\ud654\uba74\uc5d0 default \ub098\uc628 \ub0b4\uc6a9\uc744 \ubaa8\ub450 \uc9c0\uc6b0\uace0&#8230;<\/p>\n<p><a href=\"http:\/\/mooa.net\/ap\/wp-content\/uploads\/2015\/12\/p2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-2353\" src=\"http:\/\/mooa.net\/ap\/wp-content\/uploads\/2015\/12\/p2-1024x235.png\" alt=\"p2\" width=\"960\" height=\"220\" srcset=\"https:\/\/mooa.net\/ap\/wp-content\/uploads\/2015\/12\/p2-1024x235.png 1024w, https:\/\/mooa.net\/ap\/wp-content\/uploads\/2015\/12\/p2-300x69.png 300w\" sizes=\"(max-width: 960px) 100vw, 960px\" \/><\/a><\/p>\n<p>\uc704\uc758 \uc18c\uc2a4\ub85c \ucc44\uc6cc \ub123\uc2b5\ub2c8\ub2e4.<\/p>\n<p><a href=\"http:\/\/mooa.net\/ap\/wp-content\/uploads\/2015\/12\/src.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-2366\" src=\"http:\/\/mooa.net\/ap\/wp-content\/uploads\/2015\/12\/src-1024x819.png\" alt=\"src\" width=\"960\" height=\"768\" srcset=\"https:\/\/mooa.net\/ap\/wp-content\/uploads\/2015\/12\/src-1024x819.png 1024w, https:\/\/mooa.net\/ap\/wp-content\/uploads\/2015\/12\/src-300x240.png 300w, https:\/\/mooa.net\/ap\/wp-content\/uploads\/2015\/12\/src.png 1496w\" sizes=\"(max-width: 960px) 100vw, 960px\" \/><\/a><\/p>\n<p>\uadf8\ub9ac\uace0 ctrl+s \ub97c \ub20c\ub7ec \uc800\uc7a5\ud569\ub2c8\ub2e4.<\/p>\n<p><a href=\"http:\/\/mooa.net\/ap\/wp-content\/uploads\/2015\/12\/save.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-2357\" src=\"http:\/\/mooa.net\/ap\/wp-content\/uploads\/2015\/12\/save-1024x258.png\" alt=\"save\" width=\"960\" height=\"242\" srcset=\"https:\/\/mooa.net\/ap\/wp-content\/uploads\/2015\/12\/save-1024x258.png 1024w, https:\/\/mooa.net\/ap\/wp-content\/uploads\/2015\/12\/save-300x76.png 300w, https:\/\/mooa.net\/ap\/wp-content\/uploads\/2015\/12\/save.png 1954w\" sizes=\"(max-width: 960px) 100vw, 960px\" \/><\/a><\/p>\n<p>Clipboard \ub85c \ucc98\ub9ac\ud558\ub294 Apple Script\ub294 \uc544\ub798\uc640 \uac19\uc740 \ubc29\ubc95\uc73c\ub85c \uc2e4\ud589\ud558\uba74 \ub429\ub2c8\ub2e4. (clipboard \uc18c\uc2a4\ub294 ,\ub85c \uc804\ud654\ubc88\ud638 \uad6c\ubd84\ud558\ub294 \uac83\uae4c\uc9c0 \ucd94\uac00\ud568)<\/p>\n<p>\uc6d0\ud558\ub294 \uc804\ud654\ubc88\ud638\ub97c \uc120\ud0dd\ud574\uc11c ctrl+c \ud574\uc11c \ud074\ub9bd\ubcf4\ub4dc\uc5d0 \ub123\uace0 \ub9c8\uc6b0\uc2a4 \uc624\ub978\ucabd \ubc84\ud2bc \ub204\ub974\uace0<\/p>\n<p>Services &#8211; [clipboard_sms] \u00a0(\uc800\uc7a5\ud55c \uc774\ub984) \uc120\ud0dd\ud569\ub2c8\ub2e4.<\/p>\n<p><a href=\"http:\/\/mooa.net\/ap\/wp-content\/uploads\/2015\/12\/usage.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-2364\" src=\"http:\/\/mooa.net\/ap\/wp-content\/uploads\/2015\/12\/usage-633x1024.png\" alt=\"usage\" width=\"633\" height=\"1024\" srcset=\"https:\/\/mooa.net\/ap\/wp-content\/uploads\/2015\/12\/usage-633x1024.png 633w, https:\/\/mooa.net\/ap\/wp-content\/uploads\/2015\/12\/usage-185x300.png 185w, https:\/\/mooa.net\/ap\/wp-content\/uploads\/2015\/12\/usage.png 770w\" sizes=\"(max-width: 633px) 100vw, 633px\" \/><\/a><\/p>\n<p>terminal \ucc3d\uc744 \uc8fc\ub85c \uc0ac\uc6a9\ud558\ub294 \uc774\uc720\ub294 \u00a0\ub2e8\uc9c0 \uc81c\uac00 vi \uc5d0\ub514\ud130\uac00 \uc81c\uc77c \ud3b8\ud574\uc11c\uc774\uace0<\/p>\n<p>Drag \uc120\ud0dd\ub9cc\ud558\uba74 \uc790\ub3d9\uc73c\ub85c clipboard\uc5d0 \ubcf5\uc0ac\ub418\uc5b4 \ubcf4\ub0b4\uae30 \uc27d\uae30 \ub54c\ubb38\uc785\ub2c8\ub2e4.<\/p>\n<p>(\ud14d\uc2a4\ud2b8\uc5d0\ub514\ud130\ub97c \uc0ac\uc6a9\ud560 \uacbd\uc6b0 \ud544\uc694\ud55c \uc804\ud654\ubc88\ud638\ub4e4\uc744 \uc120\ud0dd\ud558\uace0 ctrl+c \ud574\uc11c clipboard\uc5d0 \ubcf5\uc0ac\ud558\ub294 \uc791\uc5c5\uc774 \ucd94\uac00\uc801\uc73c\ub85c \ud544\uc694\ud569\ub2c8\ub2e4.)<\/p>\n<p>File\uc758 \uc804\ud654\ubc88\ud638\ub97c \ucc98\ub9ac\ud558\ub294 AppleScript\ub3c4 \uc678\uc640 \uac19\uc740 \ubc29\uc2dd\uc73c\ub85c \ub9cc\ub4e4\uba74 \ub418\uace0<\/p>\n<p>\uadf8\ub0e5 Apple Script \uc5f4\uc5b4\uc11c \uc2e4\ud589 \ubc84\ud2bc(Play\ubaa8\uc591\ubc84\ud2bc) \ub20c\ub7ec\uc11c \uc2e4\ud589\ud558\uba74 \ub429\ub2c8\ub2e4.<\/p>\n<p>(\uc774 \uacbd\uc6b0 txt \ud30c\uc77c\uc740 1\uc904\uc5d0 1\uac1c\uc758 \uc804\ud654\ubc88\ud638\ub9cc \uc788\uace0 \uc5d4\ud130\ub85c \uad6c\ubd84\ub429\ub2c8\ub2e4.)<\/p>\n<p>\uc774\uc0c1\uc73c\ub85c Mac\uc5d0\uc11c \ub2e8\uccb4 \ubb38\uc790\/iMessage \ubcf4\ub0b4\ub294 \ubc29\ubc95\uc774\uc5c8\uc2b5\ub2c8\ub2e4.<\/p>\n<p>\uc5f0\ub9d0 \ubaa8\uc784 \ub4f1 \ubaa8\uc784 \ub9ce\uc73c\uc2e4\ud150\ub370 \uc544\ubb34\ucabc\ub85d \ub9ce\uc740 \ub3c4\uc6c0 \ub418\uc2dc\uae38&#8230;<\/p>\n<p>\uac10\uc0ac\ud569\ub2c8\ub2e4.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>AppleScript\ub97c \uc774\uc6a9\ud574\uc11c Mac\uc5d0\uc11c \ub2e8\uccb4 \ubb38\uc790\/iMessage \ub97c \ubcf4\ub0bc \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc800\ub294 \uadf8\ub0e5 \uc81c\uac00 \ud544\uc694\ud55c \uac83\ub9cc \uac1c\ubc1c\ud574\uc11c \uadf8 \ub54c \uadf8 \ub54c \uc0ac\uc6a9\ud558\ub294 \uc0dd\ud65c\uac1c\ubc1c\uc790\ub77c \ucf54\ub4dc\uac00 \ucd5c\uc801\ud654 \ub418\uc5b4 \uc788\uc9c0\ub3c4 \uc54a\uace0 \uae54\ub054(?)\ud558\uc9c0\ub3c4 \uc54a\uc9c0\ub9cc \ub2e4\ub978 \ubd84\ub4e4\uc5d0\uac8c\ub3c4 \ub3c4\uc6c0 \ub418\uc168\uc73c\uba74 \ud558\uace0 \uc62c\ub9bd\ub2c8\ub2e4. \uc800\ub294 \uadf8\ub0e5 \uc774\uc815\ub3c4\ub85c \ub9cc\uc871\ud574\uc11c \uc798 \uc0ac\uc6a9 \uc911\uc778\ub370 \uc874\uc798\ub4e4\uaed8\uc11c \ub9ce\uc774 \uace0\uccd0\uc8fc\uc2dc\ub9ac\ub77c \ubbff\uc2b5\ub2c8\ub2e4. AppleScript \ub4f1\ub85d\ud558\ub294 \uc0c1\uc138\ud55c \uc124\uba85\uc740 \ud558\ub2e8\uc5d0 \uc788\uc2b5\ub2c8\ub2e4. \uc774 \ud398\uc774\uc9c0\ub294 iPhone \uc0ac\uc6a9\uc790\uac00 \ub9e5\uc5d0\uc11c Messages\uc571\uc744 \uc774\uc6a9\ud574\uc11c SMS, iMessage\ub97c \ubaa8\ub450 \uc218\uc2e0\/\uc1a1\uc2e0 \uc774\uc6a9\ud55c\ub2e4\ub294 \uac78 \uae30\ubcf8\uc73c\ub85c \ud558\uace0 \uc791\uc131\ub418\uc5c8\uc2b5\ub2c8\ub2e4. \uc544\ub798\ub294 \uc804\ud654\ubc88\ud638 \ud30c\uc77c\uc744 \uc774\uc6a9\ud574\uc11c SMS \/ iMessage\ub97c \ubcf4\ub0b4\ub294 source \uc785\ub2c8\ub2e4. on run {input, parameters} set listOfShows to {} set Shows to paragraphs of (read POSIX file &#8220;\/Users\/sel2\/tel2.txt&#8221;) &#8212; \uc0ac\uc6a9\uc790 \ud648 \ubc11\uc5d0 \ubc14\ub85c \uc804\ud654\ubc88\ud638 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2364,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[375,378,377,376,374,373,372],"_links":{"self":[{"href":"https:\/\/mooa.net\/ap\/wp-json\/wp\/v2\/posts\/2348"}],"collection":[{"href":"https:\/\/mooa.net\/ap\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mooa.net\/ap\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mooa.net\/ap\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mooa.net\/ap\/wp-json\/wp\/v2\/comments?post=2348"}],"version-history":[{"count":8,"href":"https:\/\/mooa.net\/ap\/wp-json\/wp\/v2\/posts\/2348\/revisions"}],"predecessor-version":[{"id":2693,"href":"https:\/\/mooa.net\/ap\/wp-json\/wp\/v2\/posts\/2348\/revisions\/2693"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/mooa.net\/ap\/wp-json\/wp\/v2\/media\/2364"}],"wp:attachment":[{"href":"https:\/\/mooa.net\/ap\/wp-json\/wp\/v2\/media?parent=2348"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mooa.net\/ap\/wp-json\/wp\/v2\/categories?post=2348"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mooa.net\/ap\/wp-json\/wp\/v2\/tags?post=2348"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}