{"id":13,"date":"2016-09-14T08:50:40","date_gmt":"2016-09-14T00:50:40","guid":{"rendered":"http:\/\/45.76.100.195\/?p=13"},"modified":"2016-09-14T08:50:40","modified_gmt":"2016-09-14T00:50:40","slug":"%e8%af%ad%e8%a8%80%e5%9f%ba%e7%a1%80","status":"publish","type":"post","link":"https:\/\/www.carnica.cn\/?p=13","title":{"rendered":"\u8bed\u8a00\u57fa\u7840"},"content":{"rendered":"<h2>\u5bf9\u8c61\u3001\u5c5e\u6027\u548c\u547d\u4ee4<\/h2>\n<p>AppleScript\u662f\u4e00\u79cd\u9762\u5411\u5bf9\u8c61\uff08Object-Oriented\uff0c\u7b80\u79f0OO\uff09\u7684\u811a\u672c\u8bed\u8a00\uff0c\u548c\u73b0\u5728\u4e3b\u6d41\u7684\u9762\u5411\u5bf9\u8c61\u7a0b\u5e8f\u8bed\u8a00\u4e00\u6837\uff0c\u5b83\u62e5\u6709\u4e09\u4e2a\u91cd\u8981\u7684OO\u672f\u8bed\uff1a<strong>\u5bf9\u8c61<\/strong>\uff08Object\uff09\u3001<strong>\u5c5e\u6027<\/strong>\uff08Property\uff09\u548c<strong>\u547d\u4ee4<\/strong>\uff08Command\uff09\u3002<\/p>\n<ul class=\" list-paddingleft-2\">\n<li>\u5bf9\u8c61\uff1a\u53c8\u79f0\u201c<strong>\u7c7b<\/strong>\u201d\uff08Class\uff09\uff0c\u5728\u751f\u6d3b\u4e2d\u5373\u4e00\u4e2a\u5177\u4f53\u7684\u7269\u4f53---\u6c7d\u8f66\u672c\u8eab\uff0c\u5f53\u7136\u4e5f\u53ef\u4ee5\u662f\u4e00\u4e2a\u90e8\u4ef6\uff0c\u5982\u8f6e\u5b50\u3001\u8f66\u95e8\u3001\u5f15\u64ce---\u8fd9\u4e09\u8005\u4f5c\u4e3a\u6c7d\u8f66\u7684\u4e00\u4e2a\u7ec4\u6210\u90e8\u5206\uff0c\u5728OO\u6982\u5ff5\u91cc\u88ab\u79f0\u4e3a<strong>\u5b50\u7c7b<\/strong>\u3002\u8bf7\u8bb0\u4f4f\uff1a\u5bf9\u8c61\uff08\u7c7b\uff09\u662f\u6709\u53ef\u4ee5\u62e5\u6709\u5c42\u6b21\u5173\u7cfb\u7684\u3002<\/li>\n<li>\u5c5e\u6027\uff1a\u662f\u5bf9\u8c61\u7684\u7279\u6027\u3002\u5982\uff1a\u6c7d\u8f66\u7684\u989c\u8272\u3001\u8f66\u8eab\u957f\u5ea6\u3001\u91cd\u91cf\u7b49\u90fd\u662f\u5bf9\u8c61\u6c7d\u8f66\u7684\u5c5e\u6027\u3002\u4e00\u4e2a\u5bf9\u8c61\u5982\u679c\u6ca1\u6709\u5177\u4f53\u7684\u5c5e\u6027\uff0c\u90a3\u4e48\u5b83\u5c06\u662f\u62bd\u8c61\u7684\u6216\u8005\u662f\u7b3c\u7edf\u7684\u3002<\/li>\n<li>\u547d\u4ee4\uff1a\u53c8\u79f0\u201c<strong>\u65b9\u6cd5<\/strong>\u201d\uff08Method\uff09\u3002\u987e\u540d\u601d\u4e49\uff0c\u547d\u4ee4\u5c31\u662f\u6307\u4ee4\uff0c\u5b83\u544a\u8bc9\u811a\u672c\/\u7a0b\u5e8f\u5e94\u8be5\u53bb\u505a\u4ec0\u4e48\u3002\u5728\u975e\u9762\u5411\u5bf9\u8c61\uff08\u9762\u5411\u8fc7\u7a0b\uff09\u7684\u8bed\u8a00\u4e2d\uff0c\u547d\u4ee4\u6216\u8005\u65b9\u6cd5\u53ef\u88ab\u79f0\u4e3a\u201c\u51fd\u6570\u201d\u3002<\/li>\n<\/ul>\n<h2>\u6807\u8bc6\u7b26\u548c\u5173\u952e\u5b57<\/h2>\n<p>AppleScript\u91c7\u7528Unicode\u6587\u5b57\u7f16\u7801\uff0c\u5e76\u4e14\u4e0d\u533a\u5206\u5927\u5c0f\u5199\u3002<\/p>\n<h3>\u6807\u8bc6\u7b26\uff08Identifier\uff09<\/h3>\n<p>\u6807\u8bc6\u7b26\u5c31\u662f\u5bf9\u8c61\u3001\u5c5e\u6027\u3001\u5e38\u4eae\u3001\u53d8\u91cf\u7b49\u7b49\u7684\u540d\u79f0\u3002\u5c31\u50cf\u4eba\u7684\u59d3\u540d\u4e00\u6837\u3002 AppleScript\u89c4\u5b9a\uff1a<strong>\u6807\u8bc6\u7b26\u5fc5\u987b\u4ee5\u82f1\u8bed\u5b57\u6bcd\u5f00\u5934\uff0c\u53ef\u4f7f\u752826\u4e2a\u82f1\u8bed\u5b57\u6bcd\u300110\u4e2a\u963f\u62c9\u4f2f\u6570\u5b57\u4ee5\u53ca\u4e0b\u5212\u7ebf\uff08_\uff09<\/strong>\u3002<br \/>\n\u7279\u6b8a\u89c4\u5219\uff1a<strong>\u5982\u679c\u6807\u8bc6\u7b26\u4ee5\u201c|\u201d\u5f00\u5934\u5e76\u7ed3\u5c3e\uff0c\u5219\u6807\u8bc6\u7b26\u53ef\u4ee5\u4f7f\u7528\u4efb\u4f55Unicode\u5b57\u7b26\uff0c\u4f46\u662f\u6807\u8bc6\u7b26\u540d\u79f0\u672c\u8eab\u662f\u4e0d\u5305\u62ec\u201c|\u201d<\/strong>\u3002<\/p>\n<ul class=\" list-paddingleft-2\">\n<li>\u5408\u6cd5\u7684\u6807\u8bc6\u7b26\uff1a abcd\u3001ABC_91\u3001a0abc\u3001|a&amp;b*c|\u3001|\u4e2d\u6587|<\/li>\n<li>\u4e0d\u5408\u6cd5\u6807\u8bc6\u7b26\uff1a\u00a0\u00a0<del>91abc<\/del>\u3001<del>_abc<\/del>\u3001<del>\u4e2d\u6587\u540d\u79f0<\/del>\u3001<del>a&amp;b*c<\/del><\/li>\n<\/ul>\n<h3>\u5173\u952e\u5b57\uff08Keyword\uff09<\/h3>\n<p>\u5173\u952e\u5b57\u5c31\u662fAppleScript\u4fdd\u7559\u7684\u6807\u8bc6\u7b26\uff0c\u8fd9\u4e9b\u8bcd\u901a\u5e38\u62e5\u6709\u7279\u6b8a\u542b\u4e49\uff08\u5982\u88ab\u7528\u4e8eAppleScript\u8bed\u6cd5\uff09\uff0c\u5b83\u4eec\u4e0d\u80fd\u88ab\u7528\u6237\u5b9a\u4e49\u4e3a\u81ea\u5df1\u7684\u6807\u8bc6\u7b26\u3002<br \/>\n\u4e0b\u8868\u5217\u51fa\u4e86\u5e38\u89c1\u5173\u952e\u5b57\uff1a<em>\u8bf7\u6ce8\u610f\u90e8\u5206\u5173\u952e\u5b57\u7531\u4e24\u4e2a\u8bcd\u7ec4\u6210<\/em>\u3002<\/p>\n<table>\n<thead>\n<tr class=\"firstRow\">\n<th>1<\/th>\n<th>2<\/th>\n<th>3<\/th>\n<th>4<\/th>\n<th>5<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>about<\/td>\n<td>back<\/td>\n<td>considering<\/td>\n<td>end<\/td>\n<td>fourth<\/td>\n<\/tr>\n<tr>\n<td>above<\/td>\n<td>before<\/td>\n<td>contain<\/td>\n<td>equal<\/td>\n<td>from<\/td>\n<\/tr>\n<tr>\n<td>after<\/td>\n<td>beginning<\/td>\n<td>contains<\/td>\n<td>equals<\/td>\n<td>front<\/td>\n<\/tr>\n<tr>\n<td>against<\/td>\n<td>behind<\/td>\n<td>contains<\/td>\n<td>error<\/td>\n<td>get<\/td>\n<\/tr>\n<tr>\n<td>and<\/td>\n<td>below<\/td>\n<td>continue<\/td>\n<td>every<\/td>\n<td>given<\/td>\n<\/tr>\n<tr>\n<td>apart from<\/td>\n<td>beneath<\/td>\n<td>copy<\/td>\n<td>exit<\/td>\n<td>global<\/td>\n<\/tr>\n<tr>\n<td>around<\/td>\n<td>beside<\/td>\n<td>div<\/td>\n<td>false<\/td>\n<td>if<\/td>\n<\/tr>\n<tr>\n<td>as<\/td>\n<td>between<\/td>\n<td>does<\/td>\n<td>fifth<\/td>\n<td>ignoring<\/td>\n<\/tr>\n<tr>\n<td>aside from<\/td>\n<td>but<\/td>\n<td>eighth<\/td>\n<td>first<\/td>\n<td>in<\/td>\n<\/tr>\n<tr>\n<td>at<\/td>\n<td>by<\/td>\n<td>else<\/td>\n<td>for<\/td>\n<td>instead of<\/td>\n<\/tr>\n<tr>\n<td>into<\/td>\n<td>not<\/td>\n<td>reference<\/td>\n<td>tell<\/td>\n<td>transaction<\/td>\n<\/tr>\n<tr>\n<td>is<\/td>\n<td>of<\/td>\n<td>repeat<\/td>\n<td>tenth<\/td>\n<td>true<\/td>\n<\/tr>\n<tr>\n<td>it<\/td>\n<td>on<\/td>\n<td>return<\/td>\n<td>that<\/td>\n<td>try<\/td>\n<\/tr>\n<tr>\n<td>its<\/td>\n<td>onto<\/td>\n<td>returning<\/td>\n<td>the<\/td>\n<td>until<\/td>\n<\/tr>\n<tr>\n<td>last<\/td>\n<td>or<\/td>\n<td>script<\/td>\n<td>then<\/td>\n<td>where<\/td>\n<\/tr>\n<tr>\n<td>local<\/td>\n<td>out of<\/td>\n<td>second<\/td>\n<td>third<\/td>\n<td>while<\/td>\n<\/tr>\n<tr>\n<td>me<\/td>\n<td>over<\/td>\n<td>set<\/td>\n<td>through<\/td>\n<td>whose<\/td>\n<\/tr>\n<tr>\n<td>middle<\/td>\n<td>prop<\/td>\n<td>seventh<\/td>\n<td>thru<\/td>\n<td>with<\/td>\n<\/tr>\n<tr>\n<td>mod<\/td>\n<td>property<\/td>\n<td>since<\/td>\n<td>timeout<\/td>\n<td>without<\/td>\n<\/tr>\n<tr>\n<td>my<\/td>\n<td>put<\/td>\n<td>sixth<\/td>\n<td>times<\/td>\n<td>ninth<\/td>\n<\/tr>\n<tr>\n<td>ref<\/td>\n<td>some<\/td>\n<td>to<\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>\u6570\u636e\u7c7b\u578b<\/h2>\n<p>\u6570\u636e\u7c7b\u578b\uff08Data Type \u6216\u8005 Value Class\uff09\u53ef\u4ee5\u7531AppleScript\u8bed\u8a00\u672c\u8eab\u5b9a\u4e49\uff0c\u4e5f\u53ef\u4ee5\u662f\u7531\u5e94\u7528\u7a0b\u5e8f\u5b9a\u4e49\u7684\u3002\u5728AppleScript\u5e38\u89c1\u7684\u6709\u4ee5\u4e0b\u51e0\u79cd\uff1a<\/p>\n<ul class=\" list-paddingleft-2\">\n<li><strong>Boolean\uff08\u5e03\u5c14\u578b\uff09<\/strong>\u00a0\u4ec5\u4ec5\u5305\u542b\u4e24\u4e2a\u503c\uff1aTrue \u548c False\u3002<\/li>\n<li><strong>Number\uff08\u6570\u5b57\u578b\uff09<\/strong>\u3001<strong>Integer\uff08\u6574\u578b\uff09<\/strong>\u3001<strong>Real\uff08\u5b9e\u578b\uff09<\/strong>\u00a0\u5982\uff1a1\uff0c2\uff0c1.0\uff0c1.1\uff0c3.14\uff0c-1.56\u3002<\/li>\n<li><strong>Text\uff08\u6587\u672c\u578b\uff09<\/strong>\u3001<strong>String\uff08\u5b57\u7b26\u4e32\u578b\uff09<\/strong>\u00a0\u5982\uff1a\"This is a text\"\u3002 \u6ce8\u610f\uff1a\u5f15\u53f7\u4e3a\u82f1\u6587\u5f15\u53f7<\/li>\n<li><strong>Date\uff08\u65e5\u671f\u578b\uff09<\/strong>\u00a0\u5982\uff1adate \"2019\u5e748\u670830\u65e5 \u661f\u671f\u65e5 \u4e0b\u534812:31:31\"\u3002<em>\u6b64\u683c\u5f0f\u7684\u5177\u4f53\u5f62\u5f0f\u7531\u201c\u7cfb\u7edf\u504f\u597d\u8bbe\u7f6e-\u8bed\u8a00\u548c\u6587\u672c\u201d\u7684\u76f8\u5173\u8bbe\u7f6e\u51b3\u5b9a<\/em><\/li>\n<li><strong>Constant\uff08\u5e38\u91cf\u578b\uff09<\/strong>\u00a0\u5982\uff1a yes\u3001no\u3001ask\u3002\u00a0<em>\u8fd9\u4e9b\u5e38\u91cf\u53ef\u4ee5\u662f\u5df2\u7ecf\u88abAppleScript\u9884\u5b9a\u4e49\u7684\uff0c\u4e5f\u53ef\u4ee5\u662f\u7528\u6237\u5b9a\u4e49\u7684\u4e0d\u53ef\u53d8\u53d8\u91cf\u3002\u8fd9\u79cd\u7c7b\u578b\u7684\u6570\u636e\u4e00\u7ecf\u786e\u5b9a\u4e0d\u53ef\u66f4\u6539\u3002\u6b64\u5916\u53ef\u4ee5\u8ba4\u4e3a\u6240\u6709\u5173\u952e\u5b57\u90fd\u662f\u5e38\u91cf\u578b\u7684\u6570\u636e\u3002<\/em><\/li>\n<li><strong>List\uff08\u5217\u8868\u578b\uff09<\/strong>\u00a0\u5982\uff1a{1\uff0c2\uff0c3}\u3001{{1\uff0c2}\uff0c{a\uff0cb\uff0cc}\uff0c}\u3001{1,1.9,\"text\"}\u3002<em>\u5217\u8868\u578b\u6570\u636e\u7531{}\u5305\u88f9\uff0c\u4e00\u4e2a\u5217\u8868\u4e2d\u53ef\u4ee5\u518d\u5305\u542b\u5217\u8868\uff0c\u5f62\u6210\u591a\u7ef4\u5217\u8868\uff0c\u5217\u8868\u91cc\u7684\u5177\u4f53\u6570\u636e\u53ef\u4ee5\u662f\u540c\u7c7b\u578b\u7684\u3002<\/em><\/li>\n<li><strong>Record\uff08\u8bb0\u5f55\u578b\uff09<\/strong>\u00a0\u5982\uff1a{firstName:\"iDoraemon\",lastName:\"Nathan\"}\u3002\u00a0<em>\u8bb0\u5f55\u5c31\u662f\u5e26\u6709\u540d\u79f0\u7684\u5217\u8868\u3002\u8bb0\u5f55\u4e2d\u7684\u6bcf\u4e00\u9879\u90fd\u6709\u540d\u79f0\uff08\u6807\u8bc6\u7b26\uff09\u3002\u6211\u4eec\u53ef\u4ee5\u8ba4\u4e3aList\u662f\u6bcf\u4e2a\u6570\u636e\u90fd\u662f\u533f\u540d\u7684Record\u3002Record\u4e5f\u53ef\u4ee5\u8fdb\u4e00\u6b65\u5305\u542b\u53e6\u4e00\u4e2aRecord\u3002<\/em><br \/>\n<em>\u6b64\u4f8b\u4e2d\uff0c\u5305\u542b\u4e24\u4e2aText\u578b\u6570\u636e\"iDoraemon\"\u548c\"Nathan\"\uff0c\u4ed6\u4eec\u7684\u6807\u8bc6\u7b26\u5206\u522b\u662ffirstName\u548clastName\u3002\u901a\u8fc7of\u5173\u952e\u5b57\u53ef\u4ee5\u5f97\u5230\u60f3\u8981\u6570\u636e\uff1a<\/em><\/p>\n<pre><code> \u00a0firstName of {firstName:\"iDoraemon\",lastName:\"Nathan\"}\r\n<\/code><\/pre>\n<p>\u4e0a\u9762\u8fd9\u884c\u4ee3\u7801\u8fd4\u56de\"iDoraemon\"\u3002<\/li>\n<\/ul>\n<h4>\u786e\u5b9a\u6570\u636e\u7c7b\u578b-Class of<\/h4>\n<p>\u8981\u786e\u5b9a\u4e00\u4e2a\u6570\u636e\u5230\u5e95\u662f\u4ec0\u4e48\u7c7b\u578b\u7684\uff0c\u4f7f\u7528Class of\u8bed\u53e5\uff1a<\/p>\n<pre><code>class of \"string\"\r\n<\/code><\/pre>\n<p>\u6b64\u4ee3\u7801\u5f97\u5230\u7ed3\u679c\uff1atext\u3002<\/p>\n<h2>\u5f3a\u5236\u6570\u636e\u7c7b\u578b\u8f6c\u6362<\/h2>\n<p>\u6709\u65f6\u9ed8\u8ba4\u7684\u6570\u636e\u7c7b\u578b\u5e76\u4e0d\u662f\u6211\u4eec\u60f3\u8981\u7684\uff0c\u6bd4\u5982\u201c1\u201d\u7684\u6570\u636e\u7c7b\u578b\u4e3aText\uff0c\u800c\u6211\u4eec\u60f3\u8981\u7684\u65f6Integer\uff1b\u53e6\u4e00\u4e2a\u4f8b\u5b50\u662f\u547d\u4ee4\u8981\u6c42\u7684\u53c2\u6570\u7c7b\u578b\u4e0e\u5b9e\u9645\u7c7b\u578b\u4e0d\u4e00\u81f4\u65f6\uff0c\u6211\u4eec\u5c31\u9700\u8981\u5f3a\u5236\u7c7b\u578b\u8f6c\u6362\uff08Coercion\uff09\u3002<\/p>\n<h3>as\u5173\u952e\u5b57<\/h3>\n<p>\u7528as\u5173\u952e\u5b57\u5373\u53ef\u5b9e\u73b0\u5f3a\u5236\u7c7b\u578b\u8f6c\u6362\u3002<br \/>\n\u7528\u6cd5\uff1a\u00a0<strong>\u6570\u636e as \u7c7b\u578b<\/strong><br \/>\n<em>\u8bf7\u6ce8\u610f\uff1a\u5f3a\u5236\u7c7b\u578b\u8f6c\u6362\u6709\u65f6\u4f1a\u4e22\u5931\u7cbe\u5ea6\u3002<\/em><\/p>\n<pre><code>--\u6587\u672c\u7c7b\u578b\u8f6c\u6570\u5b57\u7c7b\u578b\r\n \u00a0 \u00a0\"1.99\" as real \u00a0 \u00a0 \u00a0--\u5f97\u5230Real\u7c7b\u578b\u76841.99\uff0c\u800c\u539f\u6765\u7684\u6570\u636e\u662fText\uff08\u56e0\u4e3a\u5e26\u6709\u5f15\u53f7\uff09\r\n \u00a0 \u00a0\"1.99\" as integer \u00a0 --\u5f97\u5230Integer\u7c7b\u578b\u76842\uff0c\u7cbe\u5ea6\u4e22\u5931\uff01\r\n \u00a0 \u00a0\"1\" as real \u00a0 \u00a0 \u00a0 \u00a0 --\u5f97\u5230Real\u7c7b\u578b\u76841.0\uff0c\u81ea\u52a8\u63d0\u5347\u7cbe\u5ea6\uff01\r\n\r\n--\u8f6c\u6362\u6210List\u7c7b\u578b\r\n \u00a0 \u00a0\"text\" as list \u00a0 \u00a0 \u00a0--\u5f97\u5230{\"text\"}\r\n \u00a0 \u00a01.99 as list \u00a0 \u00a0 \u00a0 \u00a0--\u5f97\u5230{1.99}\r\n \u00a0 \u00a0{a:1,b:2} as list \u00a0 --\u5f97\u5230{1\uff0c2}\uff0c\u7cbe\u5ea6\u4e22\u5931\uff08\u6807\u8bc6\u7b26\u4e22\u5931\uff09\uff01\r\n\r\n--\u9519\u8bef\u4e3e\u4f8b\r\n \u00a0 \u00a0\"text2\" as number \u00a0 --\u9519\u8bef\uff01 Text\u4e2d\u5305\u542b\u4e86\u65e0\u6cd5\u8f6c\u6362\u6210\u6570\u5b57\u7684\u5b57\u7b26\u3002\r\n \u00a0 \u00a01 as record \u00a0 \u00a0 \u00a0 \u00a0 --\u9519\u8bef\uff01 \u65e0\u6cd5\u83b7\u5f97\u6807\u8bc6\u7b26\u3002\r\n \u00a0 \u00a0{1,2} as record \u00a0 \u00a0 --\u9519\u8bef\uff01 \u65e0\u6cd5\u83b7\u5f97\u6807\u8bc6\u7b26\u3002\r\n<\/code><\/pre>\n<h2>\u8fd0\u7b97\u7b26<\/h2>\n<h3>\u6570\u5b66\u8fd0\u7b97\u7b26\uff08\u5e38\u89c1\u4e03\u79cd\uff09<\/h3>\n<table>\n<thead>\n<tr class=\"firstRow\">\n<th align=\"center\">\u8fd0\u7b97\u7b26<\/th>\n<th align=\"center\">\u542b\u4e49<\/th>\n<th align=\"center\">\u4e3e\u4f8b<\/th>\n<th align=\"center\">\u8fd0\u7b97\u7b26<\/th>\n<th align=\"center\">\u542b\u4e49<\/th>\n<th align=\"center\">\u4e3e\u4f8b<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td align=\"center\">+<\/td>\n<td align=\"center\">\u6570\u5b66+<\/td>\n<td align=\"center\">1+1 \u8fd4\u56de2<\/td>\n<td align=\"center\">^<\/td>\n<td align=\"center\">\u6307\u6570\u8fd0\u7b97\u7b26 a^b<\/td>\n<td align=\"center\">3^2 \u8fd4\u56de9.0<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">-<\/td>\n<td align=\"center\">\u6570\u5b66-<\/td>\n<td align=\"center\">2-1 \u8fd4\u56de1<\/td>\n<td align=\"center\">div<\/td>\n<td align=\"center\">\u6574\u9664\uff0c\u820d\u5f03\u4f59\u6570<\/td>\n<td align=\"center\">5 div 2 \u8fd4\u56de2<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">*<\/td>\n<td align=\"center\">\u6570\u5b66x<\/td>\n<td align=\"center\">2*3 \u8fd4\u56de6<\/td>\n<td align=\"center\">mod<\/td>\n<td align=\"center\">\u9664\u6cd5\u53d6\u4f59\u6570<\/td>\n<td align=\"center\">5 mod 2 \u8fd4\u56de1<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">\/\u6216\u00f7<\/td>\n<td align=\"center\">\u6570\u5b66\u00f7<\/td>\n<td align=\"center\">3\/2 \u8fd4\u56de1.5<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><strong><em>AppleScript\u5bf9\u9664\u6cd5\u7684\u8fd0\u7b97\u8fc7\u7a0b\u548c\u4ee3\u6570\u5b66\u4e00\u6837\uff0c\u4e0d\u4f1a\u51fa\u73b0\u5176\u4ed6\u7f16\u7a0b\u8bed\u8a00\u4e2d3\/2=1\u7684\u60c5\u51b5\uff0cAppleScript\u66f4\u8d34\u8fd1\u5b9e\u9645\u751f\u6d3b\uff0c\u8bf7\u4e0d\u8981\u548c\u5176\u4ed6\u7f16\u7a0b\u8bed\u8a00\u6df7\u6dc6\u3002<\/em><\/strong><\/p>\n<h3>\u6bd4\u8f83\u8fd0\u7b97\u7b26<\/h3>\n<p>\u4e0b\u8868\u4e2d<strong>\u6240\u6709\u8fd0\u7b97\u7b26\u5747\u8fd4\u56deBoolean\uff08\u5e03\u5c14\u578b\uff09\u6570\u503c<\/strong>\u3002 \u540c\u4e00\u4e2a\u683c\u5b50\u7684\u8fd0\u7b97\u7b26\u4e2d\u662f\u540c\u4e00\u529f\u80fd\u7684\u4e0d\u540c\u8868\u8fbe\u65b9\u5f0f\u3002\u4ece\u8868\u683c\u4e2d\u4e0d\u96be\u770b\u51fa\uff0cAppleScript\u5728\u8bbe\u8ba1\u7684\u65f6\u5019\u7684\u786e\u5f88\u7528\u5fc3\uff0c\u8bed\u8a00\u5f88\u63a5\u8fd1\u82f1\u8bed\u3002<\/p>\n<table>\n<thead>\n<tr class=\"firstRow\">\n<th>\u8fd0\u7b97\u7b26<\/th>\n<th align=\"center\">\u542b\u4e49<\/th>\n<th>\u8fd0\u7b97\u7b26<\/th>\n<th align=\"center\">\u542b\u4e49<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>=<\/p>\n<p>equals<\/p>\n<p>is equal<\/p>\n<p>[is] equal to<\/td>\n<td align=\"center\">\u6bd4\u8f83\u4e24\u7aef\u662f\u5426\u76f8\u540c<\/p>\n<p>\u652f\u6301\u7684\u6570\u636e\u7c7b\u578b\u975e\u5e38\u591a<\/td>\n<td>\u2260<\/p>\n<p>is not<\/p>\n<p>isn't<\/p>\n<p>isn't equal [to]<\/p>\n<p>is not equal [to]<\/p>\n<p>doesn't equal<\/p>\n<p>does not equal<\/td>\n<td align=\"center\">\u6bd4\u8f83\u4e24\u7aef\u662f\u5426\u4e0d\u540c<\/p>\n<p>\u652f\u6301\u7684\u6570\u636e\u7c7b\u578b\u975e\u5e38\u591a<\/td>\n<\/tr>\n<tr>\n<td>&gt;<\/p>\n<p>[is] greater than<\/p>\n<p>comes after<\/p>\n<p>is not less than or equal [to]<\/p>\n<p>isn't less than or equal [to]<\/td>\n<td align=\"center\">\u5de6\u8fb9\u662f\u5426\u6570\u503c\u5927\u4e8e\/\u6587\u672c\u957f\u4e8e\/\u65f6\u95f4\u665a\u4e8e\u53f3\u8fb9<\/p>\n<p>\u652f\u6301\u7c7b\u578b\uff1ainteger\u3001real\u3001date\u3001text<\/td>\n<td>\u2265<\/p>\n<p>&gt;=<\/p>\n<p>[is] greater than or equal<\/p>\n<p>is not less than<\/p>\n<p>isn't less than<\/p>\n<p>does not come before<\/p>\n<p>doesn't come before<\/td>\n<td align=\"center\">\u5de6\u8fb9\u662f\u5426\u6570\u503c\u5927\u4e8e\/\u6587\u672c\u957f\u4e8e\/\u65f6\u95f4\u665a\u4e8e\u6216\u7b49\u4e8e\u53f3\u8fb9<\/p>\n<p>\u652f\u6301\u7c7b\u578b\uff1ainteger\u3001real\u3001date\u3001text<\/td>\n<\/tr>\n<tr>\n<td>&lt;<\/p>\n<p>[is] less than<\/p>\n<p>comes before<\/p>\n<p>is not greater than or equal [to]<\/p>\n<p>isn't greater than or equal [to]<\/td>\n<td align=\"center\">\u5de6\u8fb9\u662f\u5426\u6570\u503c\u5c0f\u4e8e\/\u6587\u672c\u77ed\u4e8e\/\u65f6\u95f4\u65e9\u4e8e\u53f3\u8fb9<\/p>\n<p>\u652f\u6301\u7c7b\u578b\uff1ainteger\u3001real\u3001date\u3001text<\/td>\n<td>\u2264<\/p>\n<p>&lt;=<\/p>\n<p>[is] less than or equal<\/p>\n<p>is not greater than<\/p>\n<p>isn't greater than<\/p>\n<p>does not come after<\/p>\n<p>doesn't come after<\/td>\n<td align=\"center\">\u5de6\u8fb9\u662f\u5426\u6570\u503c\u5c0f\u4e8e\/\u6587\u672c\u77ed\u4e8e\/\u65f6\u95f4\u65e9\u4e8e\u6216\u8005\u7b49\u4e8e\u53f3\u8fb9<\/p>\n<p>\u652f\u6301\u7c7b\u578b\uff1ainteger\u3001real\u3001date\u3001text<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>start[s] with<\/p>\n<p>begin[s] with<\/td>\n<td align=\"center\">\u524d\u8005\u662f\u5426\u4ee5\u540e\u8005\u4e3a\u5f00\u59cb<\/p>\n<p>\u652f\u6301text\u548clist<\/td>\n<td>end[s] with<\/td>\n<td align=\"center\">\u524d\u8005\u662f\u5426\u4ee5\u540e\u8005\u4e3a\u7ed3\u675f<\/p>\n<p>\u652f\u6301text\u548clist<\/td>\n<\/tr>\n<tr>\n<td>contain[s]<\/td>\n<td align=\"center\">\u524d\u8005\u4e2d\u662f\u5426\u5305\u542b\u540e\u8005\u8fd9\u4e00\u5143\u7d20<\/p>\n<p>\u652f\u6301text\u3001list\u3001record\u7c7b\u578b<\/td>\n<td>does not contain<\/p>\n<p>doesn't contain<\/td>\n<td align=\"center\">\u524d\u8005\u4e2d\u662f\u5426\u4e0d\u542b\u540e\u8005\u8fd9\u4e00\u5143\u7d20<\/p>\n<p>\u652f\u6301text\u3001list\u3001record\u7c7b\u578b<\/td>\n<\/tr>\n<tr>\n<td>is in<\/p>\n<p>is contained by<\/td>\n<td align=\"center\">\u540e\u8005\u4e2d\u662f\u5426\u5305\u542b\u524d\u8005\u8fd9\u4e00\u5143\u7d20<\/p>\n<p>\u652f\u6301text\u3001list\u3001record\u7c7b\u578b<\/td>\n<td>is not in<\/p>\n<p>is not contained by<\/p>\n<p>isn't contained by<\/td>\n<td align=\"center\">\u540e\u8005\u4e2d\u662f\u5426\u4e0d\u542b\u524d\u8005\u8fd9\u4e00\u5143\u7d20<\/p>\n<p>\u652f\u6301text\u3001list\u3001record\u7c7b\u578b<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><strong><em>\u6bd4\u8f83\u8fd0\u7b97\u7b26\u8868\u8fbe\u65b9\u5f0f\u975e\u5e38\u591a\u6837\uff0c\u5e94\u8be5\u6839\u636e\u81ea\u5df1\u7684\u5b9e\u9645\u60c5\u51b5\u9009\u62e9\u4e00\u79cd\u6216\u51e0\u79cd<\/em><\/strong><\/p>\n<h3>\u903b\u8f91\u8fd0\u7b97\u7b26<\/h3>\n<p><strong>and<\/strong>\uff08\u903b\u8f91\u4e0e\uff09\u3001<strong>or<\/strong>\uff08\u903b\u8f91\u6216\uff09\u3001<strong>not<\/strong>\uff08\u903b\u8f91\u975e\uff09\uff0c\u4e09\u4e2a\u5bf9\u53c2\u4e0e\u8fd0\u7b97\u7684<strong><em>\u6570\u636e\u8981\u6c42\u5747\u4e3aBoolean\u578b\uff0cnot\u4e3a\u5355\u76ee\u8fd0\u7b97\u7b26<\/em><\/strong>\u3002<\/p>\n<h3>&amp; \u8fd0\u7b97\u7b26<\/h3>\n<p>\u7b80\u5355\u6765\u8bf4\uff0c\u8fd9\u4e2a\u662f<strong>\u5408\u5e76\u8fd0\u7b97\u7b26<\/strong>\u3002\u652f\u6301\u4efb\u4f55\u7c7b\u578b\u6570\u636e\u3002 \u8bb0\u4f4f\u201c&amp;\u201d\u8fd0\u7b97\u7b26\u7684\u4e09\u4e2a\u89c4\u5219\uff1a<\/p>\n<ul class=\" list-paddingleft-2\">\n<li>\u201c&amp;\u201d\u5de6\u8fb9\u7684\u6570\u636e\u7c7b\u578b\u4e3aText\uff08\u6587\u672c\u578b\uff09\u65f6\uff0c\u7ed3\u679c\u4e3aText\uff1b\u5b58\u5728\u62a5\u9519\u53ef\u80fd\uff1b<\/li>\n<li>\u201c&amp;\u201d\u5de6\u8fb9\u7684\u6570\u636e\u7c7b\u578b\u4e3aRecord\uff08\u8bb0\u5f55\u578b\uff09\u65f6\uff0c\u7ed3\u679c\u4e3aRecord\uff1b\u5b58\u5728\u62a5\u9519\u53ef\u80fd\uff1b<\/li>\n<li>\u201c&amp;\u201d\u5de6\u8fb9\u7684\u6570\u636e\u7c7b\u578b\u4e3a\u5176\u4ed6\u65f6\uff0c\u7ed3\u679c\u4e3aList\u7c7b\u578b\u3002\n<pre><code> \u00a0\"Text\" &amp; 1 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0--\u7ed3\u679c\uff1a\u201cText1\u201d\uff08Text\u7c7b\u578b\uff09\r\n \u00a01 &amp; \"Text\" \u00a0 \u00a0 \u00a0 \u00a0 \u00a0--\u7ed3\u679c\uff1a{1,\u201cText\u201d}\uff08List\u7c7b\u578b\uff09\r\n\r\n \u00a0{name:\"a\"} &amp; \"b\" \u00a0 \u00a0--\u7ed3\u679c\uff1a{name:\"a\",&lt;&lt;class ktxt&gt;&gt;:\"b\"\uff08Record\u7c7b\u578b\uff0c\u7b2c\u4e8c\u4e2a\u5143\u7d20\u533f\u540d\uff09\r\n \u00a03 &amp; {name:\"a\"} \u00a0 \u00a0 \u00a0--\u7ed3\u679c\uff1a{3,\"a\"}\uff08List\u7c7b\u578b\uff0c\u4e14\u4e22\u5931\u6807\u8bc6\u7b26\uff09\r\n\r\n \u00a0{1,2,3} &amp; {4,5,6} \u00a0 --\u7ed3\u679c\uff1a{1,2,3,4,5,6}\uff08List\u7c7b\u578b-\u4e00\u7ef4\u7684\uff09\r\n \u00a0{1,2,3} &amp; 4 &amp; 5 &amp; 6 --\u7ed3\u679c\uff1a\u540c\u4e0a\r\n \u00a0{a:1,b:2} &amp; {c:3} \u00a0 --\u7ed3\u679c\uff1a{a:1,b:2,c:3}\uff08Record\u7c7b\u578b-\u4e00\u7ef4\u7684\uff09\r\n\r\n \u00a0-----\u9519\u8bef\u4e3e\u4f8b\r\n \u00a0\"Text\" &amp; {name:\"a\"} \u00a0 \u00a0 --\u9519\u8bef\uff01\u65e0\u6cd5\u5c06Record\u7c7b\u578b\u6570\u636e\u8f6c\u4e3a\u6587\u672c\r\n \u00a0{name:\"a\"} &amp; 3 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0--\u9519\u8bef\uff01\u65e0\u6cd5\u5c06Integer\u8f6c\u6362\u4e3aRecord\r\n<\/code><\/pre>\n<\/li>\n<\/ul>\n<h2>\u63d0\u53d6\u5bf9\u8c61\u4e2d\u7684\u5143\u7d20<\/h2>\n<h3>\u63d0\u53d6\u5b57\u7b26\u4e32\u4e2d\u7684\u5b57\u6bcd\u6216\u5355\u8bcd<\/h3>\n<p><strong>\u63d0\u53d6\u5b57\u7b26\u4e32\u4e2d\u5168\u90e8\u5b57\u6bcd\uff08\u5355\u4e2aUnicode\u5b57\u7b26\uff09\uff0c\u7ed3\u679c\u4e3aList\u7c7b\u578b<\/strong><\/p>\n<pre><code>every character of \"\u4e00\u4e2a\u5b57\u7b26\u4e32\" \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0--\u7ed3\u679c\uff1a{\"\u4e00\",\"\u4e2a\",\"\u5b57\",\"\u7b26\",\"\u4e32\"}\u6bcf\u4e2a\u5b57\u7b26\r\ncharacters of \"A String\" \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0--\u7ed3\u679c\uff1a{\"A\",\" \",\"S\",\"t\",\"r\",\"i\",\"n\",\"g\"}\u6bcf\u4e2a\u5b57\u7b26\r\n<\/code><\/pre>\n<p><em>\u8bf7\u6ce8\u610f\uff1aevery character of \u548c characters of \u4e24\u4e2a\u547d\u4ee4\u7684\u529f\u80fd\u5b8c\u5168\u4e00\u81f4\u3002<\/em><\/p>\n<p><strong>\u63d0\u53d6\u5b57\u7b26\u4e32\u4e2d\u5168\u90e8\u5355\u8bcd\uff0c\u7ed3\u679c\u4e3aList\u7c7b\u578b<\/strong><\/p>\n<pre><code>words of \u201cA string\u201d \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 --\u7ed3\u679c\uff1a{\"A\",\"string\"}\r\nevery word of \"\u6211\u7684\u540d\u5b57\u53eb\u5f20\u4e09\" \u00a0 \u00a0 \u00a0 --\u7ed3\u679c\uff1a{\"\u6211\",\"\u7684\",\"\u540d\u5b57\",\"\u53eb\",\"\u5f20\u4e09\"}\r\n<\/code><\/pre>\n<p><em>every word of \u548c words of \u529f\u80fd\u4e5f\u5b8c\u5168\u4e00\u81f4\u3002<\/em><\/p>\n<p><strong>\u63d0\u53d6\u6307\u5b9a\u672a\u77e5\u7684\u51e0\u4e2a\u5b57\u7b26\u6216\u5355\u8bcd\uff0c\u7ed3\u679c\u4e3aList\u7c7b\u578b\uff1b\u63d0\u53d6\u7279\u5b9a\u4f4d\u7f6e\u7684\u4e00\u4e2a\u5b57\u7b26\u6216\u5355\u8bcd\uff0c\u7ed3\u679c\u4e3aText\u3002<\/strong><\/p>\n<pre><code>characters 3 through 5 of \"A String\" \u00a0 \u00a0 \u00a0 \u00a0--\u7ed3\u679c\uff1a{\"S\",\"t\",\"r\"} \u00a0\uff08\u51e0\u4e2a\u5b57\u7b26--List\uff09\r\nwords 3 through 5 of \"\u6211\u7684\u540d\u5b57\u53eb\u5f20\u4e09\" \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0--\u7ed3\u679c\uff1a{\"\u540d\u5b57\",\"\u53eb\",\"\u5f20\u4e09\"} \u00a0\uff08\u51e0\u4e2a\u5355\u8bcd--List\uff09\r\n\r\nword 2 of \"This is a text\" \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0--\u7ed3\u679c\uff1a\"is\" \u00a0\uff08\u4e00\u4e2a\u5355\u8bcd--Text\uff09\r\ncharacter 3 of \"This is a text\" \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 --\u7ed3\u679c\uff1a\"i\" \u00a0 (\u4e00\u4e2a\u5b57\u7b26--Text)\r\n\r\nninth character of \"This is a text\" \u00a0 \u00a0 --\u7ed3\u679c\uff1a\"a\"\uff0cAppleScript\u8fd8\u80fd\u8bc6\u522b\u5e8f\u6570\u8bcd\u3002\r\n<\/code><\/pre>\n<p><strong><em>\u7279\u522b\u6ce8\u610f\uff1a<\/em><\/strong><\/p>\n<ul class=\" list-paddingleft-2\">\n<li>\u7b2c\u4e00\u4e2a\u5b57\u7b26\u7684\u4f4d\u7f6e\u662f1\uff0c\u800c\u4e0d\u662f0\uff01<\/li>\n<li>\"through\"\u53ef\u4ee5\u7f29\u5199\u4e3a\u201cthru\u201d<\/li>\n<li>\u4e0d\u63a8\u8350\u7528\u5e8f\u6570\u8bcd\u65b9\u6cd5\u83b7\u5f97\u4e00\u4e2a\u5355\u8bcd\u6216\u5b57\u7b26<\/li>\n<li>\u4e0d\u63a8\u8350\u5bf9\u4e8e\u4e2d\u6587\u5f15\u7528\u201cword\u201d\u76f8\u5173\u8bed\u53e5<\/li>\n<\/ul>\n<h3>\u63d0\u53d6Finder\u6587\u4ef6\u5217\u8868<\/h3>\n<p>\u7528\u63d0\u53d6\u5b57\u7b26\u4e32\u4e2d\u5b57\u6bcd\u7684\u601d\u60f3\uff0c\u73b0\u5728\u6765\u63d0\u53d6Finder\u6587\u4ef6\u5217\u8868\u3002 \u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<pre><code>tell application \"Finder\"\r\n \u00a0 \u00a0every file of desktop \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 --\u83b7\u5f97\u684c\u9762\u4e0a\u6240\u6709\u6587\u4ef6\uff08List\u7c7b\u578b\uff09\uff0c\u5176\u5185\u5bb9\u5f88\u8be6\u7ec6\r\n \u00a0 \u00a0files of desktop \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0--\u540c\u4e0a\r\n\r\n \u00a0 \u00a0every folder of desktop \u00a0 \u00a0 \u00a0 \u00a0 --\u83b7\u5f97\u684c\u9762\u4e0a\u6240\u6709\u6587\u4ef6\u5939\uff08List\u7c7b\u578b\uff09\uff0c\u5176\u5185\u5bb9\u5f88\u8be6\u7ec6\r\n \u00a0 \u00a0folers of desktop \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 --\u540c\u4e0a\r\n\r\n \u00a0 \u00a0name of every file of desktop \u00a0 --\u7ed3\u679c\uff1a\u83b7\u5f97\u684c\u9762\u4e0a\u6240\u6709\u6587\u4ef6\u540d\u79f0\uff08List\u7c7b\u578b\uff09\r\nend tell\r\n<\/code><\/pre>\n<p>\u63d0\u53d6\u7b26\u5408\u6307\u5b9a\u6761\u4ef6\u7684Finder\u6587\u4ef6\u5217\u8868\uff1a<\/p>\n<pre><code>tell application \"Finder\"\r\n \u00a0 \u00a0every file of desktop whose name begins with \"a\" \u00a0 \u00a0--\u4ec5\u83b7\u5f97\u6587\u4ef6\u540d\u4ee5a\u5f00\u5934\u7684\u6587\u4ef6\u5217\u8868\r\n \u00a0 \u00a0every file of desktop where its name contains \"a\" \u00a0 --\u4ec5\u83b7\u5f97\u6587\u4ef6\u540d\u5305\u542ba\u7684\u6587\u4ef6\u5217\u8868\r\nend tell\r\n<\/code><\/pre>\n<h2>\u6dfb\u52a0\u6ce8\u91ca\u548c\u62ec\u53f7<\/h2>\n<p>\u6240\u8c13\u6ce8\u91ca\uff0c\u5c31\u662f\u5199\u5728\u4ee3\u7801\u91cc\u4f46\u4e0d\u4f1a\u88ab\u6267\u884c\u7684\u6587\u5b57\uff0c\u901a\u5e38\u7528\u4e8e\u8f85\u52a9\u8bf4\u660e\u4ee3\u7801\u529f\u80fd\u3002<\/p>\n<h3>\u884c\u5c3e\u6ce8\u91ca\uff08End-of-line comment\uff09<\/h3>\n<p>\u4ee5\u201c--\u201d\uff08\u4e24\u4e2a\u8fde\u5b57\u7b26\uff0c\u4e0d\u542b\u5f15\u53f7\uff09\u5f00\u5934\uff0c--\u4e4b\u540e\u7684\u5185\u5bb9\u5168\u90e8\u4e3a\u6ce8\u91ca\uff0c\u800c\u4e4b\u524d\u7684\u5185\u5bb9\u4ecd\u7136\u4e3a\u4f1a\u88ab\u6267\u884c\u7684\u4ee3\u7801\uff0c\u4ec5\u5bf9\u5f53\u524d\u4e00\u884c\u6709\u6548\uff01 \u5728\u524d\u9762\u7684\u4ee3\u7801\u793a\u4f8b\u4e2d\uff0c\u6211\u4eec\u5c31\u91c7\u7528\u4e86\u8fd9\u79cd\u6ce8\u91ca\u65b9\u6cd5\u3002<\/p>\n<h3>\u5757\u6ce8\u91ca\uff08Block comment\uff09<\/h3>\n<p>\u4ee5\u201c(*\u201d \u5f00\u5934\uff0c\u5e76\u4ee5\u201c*\uff09\u201d\u7ed3\u5c3e\uff08\u62ec\u53f7\u52a0\u4e0a\u661f\u53f7\uff0c\u5747\u4e0d\u542b\u5f15\u53f7\uff09\uff1b\u5305\u542b\u5728\u91cc\u9762\u7684\u6240\u6709\u6587\u5b57\u5747\u89c6\u4e3a\u6ce8\u91ca\uff0c\u53ef\u4ee5\u8de8\u884c\uff0c\u4e5f\u53ef\u4ee5\u5728\u4e00\u884c\u4e2d\u95f4\u4f4d\u7f6e\u3002<\/p>\n<h3>\u7ed9\u4ee3\u7801\u6dfb\u52a0\u62ec\u53f7<\/h3>\n<p>\u7531\u4e8e\u4ee3\u7801\u6267\u884c\u7684\u4f18\u5148\u7ea7\u95ee\u9898\uff0c\u53ef\u80fd\u5bfc\u81f4\u4ee3\u7801\u672a\u6309\u7167\u9884\u671f\u6267\u884c\uff0c\u90a3\u4e48\u6b64\u65f6\u52a0\u4e0a\u62ec\u53f7\u6765\u5f3a\u5236\u63a7\u5236\u8fd0\u7b97\u4f18\u5148\u7ea7\u5c06\u5f88\u5fc5\u8981\u3002 \u66f4\u91cd\u8981\u7684\u662f\uff0c\u5bf9\u4e8e\u590d\u6742\u7684\u4ee3\u7801\u7684\uff0c\u4e0d\u7ba1\u9ed8\u8ba4\u4f18\u5148\u7ea7\u5982\u4f55\uff0c\u603b\u52a0\u4e0a\u62ec\u53f7\u6765\u660e\u786e\u662f\u4e2a\u597d\u4e60\u60ef\uff01<\/p>\n<h2>\u4ee3\u7801\u7f29\u5199<\/h2>\n<p>\u4e3a\u4e86\u8282\u7701\u65f6\u95f4\uff0c\u5c06\u5197\u957f\u7684\u5173\u952e\u5b57\u7f29\u5199\u4e3a\u51e0\u4e2a\u5b57\u6bcd\u4e5f\u662f\u975e\u5e38\u6709\u7528\u7684\u3002\u793a\u4f8b\uff1a<\/p>\n<ul class=\" list-paddingleft-2\">\n<li>application \u7b80\u5199\u4e3a app \uff08\u7f16\u8bd1\u65f6\u4f1a\u8865\u5168\uff09<\/li>\n<li>end tell\/repeat\/try \u7b80\u5199\u4e3a end \uff08\u7f16\u8bd1\u65f6\u4f1a\u8865\u5168\uff09<\/li>\n<li>through \u7b80\u5199\u4e3a thru<\/li>\n<li>if\u8bed\u53e5 \u53ef\u7701\u7565 then<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u5bf9\u8c61\u3001\u5c5e\u6027\u548c\u547d\u4ee4 AppleScript\u662f\u4e00\u79cd\u9762&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.carnica.cn\/index.php?rest_route=\/wp\/v2\/posts\/13"}],"collection":[{"href":"https:\/\/www.carnica.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.carnica.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.carnica.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.carnica.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=13"}],"version-history":[{"count":1,"href":"https:\/\/www.carnica.cn\/index.php?rest_route=\/wp\/v2\/posts\/13\/revisions"}],"predecessor-version":[{"id":14,"href":"https:\/\/www.carnica.cn\/index.php?rest_route=\/wp\/v2\/posts\/13\/revisions\/14"}],"wp:attachment":[{"href":"https:\/\/www.carnica.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=13"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.carnica.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=13"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.carnica.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=13"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}