{"id":260581,"date":"2024-05-15T13:38:21","date_gmt":"2024-05-15T05:38:21","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/260581.html"},"modified":"2024-05-15T13:38:27","modified_gmt":"2024-05-15T05:38:27","slug":"%e5%a6%82%e4%bd%95%e7%94%a8applescript%e5%86%99%e4%bb%a3%e7%a0%81%ef%bc%8c%e5%ae%9e%e7%8e%b0%e6%a3%80%e6%b5%8busb%e8%ae%be%e5%a4%87%e8%bf%9e%e5%85%a5","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/260581.html","title":{"rendered":"\u5982\u4f55\u7528AppleScript\u5199\u4ee3\u7801\uff0c\u5b9e\u73b0\u68c0\u6d4bUSB\u8bbe\u5907\u8fde\u5165"},"content":{"rendered":"<p style=\"text-align:center\"><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/27112511\/96de985a-b827-4fed-9f0e-4e9061be4764.webp\" alt=\"\u5982\u4f55\u7528AppleScript\u5199\u4ee3\u7801\uff0c\u5b9e\u73b0\u68c0\u6d4bUSB\u8bbe\u5907\u8fde\u5165\" \/><\/p>\n<p><p>\u4f7f\u7528AppleScript\u7f16\u5199\u4ee3\u7801\u5b9e\u73b0\u9488\u5bf9USB\u8bbe\u5907\u7684\u8fde\u63a5\u68c0\u6d4b\uff0c<strong>\u5305\u62ec\u76d1\u542cUSB\u8bbe\u5907\u7684\u63d2\u5165\u4e8b\u4ef6\u3001\u83b7\u53d6\u5df2\u8fde\u63a5USB\u8bbe\u5907\u7684\u8be6\u7ec6\u4fe1\u606f\uff0c\u4ee5\u53ca\u5bf9\u7279\u5b9aUSB\u8bbe\u5907\u505a\u51fa\u54cd\u5e94<\/strong>\u3002\u5176\u4e2d\uff0c\u76d1\u542cUSB\u8bbe\u5907\u7684\u63d2\u5165\u4e8b\u4ef6\u662f\u6838\u5fc3\u6b65\u9aa4\uff0c\u56e0\u4e3a\u5b83\u4e3a\u8fdb\u4e00\u6b65\u7684\u64cd\u4f5c\u63d0\u4f9b\u4e86\u57fa\u7840\u3002\u8fd9\u901a\u5e38\u6d89\u53ca\u5230\u5bf9AppleScript\u7684system events\u7684\u8c03\u7528\uff0c\u4ee5\u53ca\u53ef\u80fd\u9700\u8981\u7ed3\u5408\u5176\u4ed6\u811a\u672c\u8bed\u8a00\u5982bash\u6216Python\u6765\u6269\u5c55AppleScript\u7684\u529f\u80fd\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u76d1\u542cUSB\u8bbe\u5907\u63d2\u5165\u4e8b\u4ef6<\/h3>\n<\/p>\n<p><p>\u76d1\u542cUSB\u8bbe\u5907\u7684\u63d2\u5165\u4e8b\u4ef6\u662f\u901a\u8fc7\u76d1\u63a7\u7cfb\u7edf\u7ea7\u7684\u4e8b\u4ef6\u6765\u5b8c\u6210\u7684\u3002AppleScript\u81ea\u8eab\u53ef\u80fd\u6ca1\u6709\u76f4\u63a5\u7684\u65b9\u6cd5\u6765\u5b8c\u6210\u8fd9\u4e00\u64cd\u4f5c\uff0c\u56e0\u6b64\uff0c\u6211\u4eec\u9700\u8981\u501f\u52a9\u4e8e\u989d\u5916\u7684\u5de5\u5177\u6216\u811a\u672c\u6765\u8f85\u52a9\u5b8c\u6210\u3002<\/p>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528macOS\u7684\u7cfb\u7edf\u65e5\u5fd7\u6765\u76d1\u63a7USB\u4e8b\u4ef6\u3002\u901a\u8fc7\u5b9a\u671f\u8bfb\u53d6\u7cfb\u7edf\u65e5\u5fd7\uff0c\u6211\u4eec\u53ef\u4ee5\u68c0\u6d4b\u5230\u65b0USB\u8bbe\u5907\u7684\u8fde\u63a5\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u53ef\u4ee5\u901a\u8fc7\u4e00\u4e2a\u5faa\u73af\u811a\u672c\u6765\u4e0d\u65ad\u68c0\u67e5\u7cfb\u7edf\u65e5\u5fd7\uff0c\u6216\u8005\u66f4\u9ad8\u6548\u5730\uff0c\u4f7f\u7528launchd\u670d\u52a1\u6765\u89e6\u53d1\u811a\u672c\u6267\u884c\u3002<\/p>\n<\/p>\n<p><p>\u4f8b\u5982\uff0c\u4f7f\u7528\u4ee5\u4e0bAppleScript\u7247\u6bb5\u7ed3\u5408shell\u547d\u4ee4\u68c0\u67e5USB\u8bbe\u5907\u7684\u8fde\u63a5\u4e8b\u4ef6\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-applescript\">repeat<\/p>\n<p>   do shell script &quot;system_profiler SPUSBDataType | grep &#039;Product ID&#039;&quot;<\/p>\n<p>   delay 10 -- \u6bcf10\u79d2\u68c0\u67e5\u4e00\u6b21<\/p>\n<p>end repeat<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u4e2a\u65b9\u6cd5\u901a\u8fc7<code>system_profiler<\/code>\u547d\u4ee4\u5217\u51fa\u6240\u6709USB\u8bbe\u5907\u7684\u4fe1\u606f\uff0c\u7136\u540e\u901a\u8fc7<code>grep<\/code>\u641c\u7d22\u7279\u5b9a\u7684\u6807\u8bc6\u7b26\uff0c\u4f8b\u5982\u4ea7\u54c1ID\u3002\u6bcf\u969410\u79d2\u5faa\u73af\u6267\u884c\uff0c\u4ee5\u4fbf\u6301\u7eed\u76d1\u63a7USB\u7aef\u53e3\u7684\u53d8\u5316\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u83b7\u53d6\u5df2\u8fde\u63a5USB\u8bbe\u5907\u7684\u8be6\u7ec6\u4fe1\u606f<\/h3>\n<\/p>\n<p><p>\u4e00\u65e6\u68c0\u6d4b\u5230USB\u8bbe\u5907\u7684\u8fde\u63a5\uff0c\u4e0b\u4e00\u6b65\u662f\u83b7\u53d6\u8be5\u8bbe\u5907\u7684\u8be6\u7ec6\u4fe1\u606f\u3002\u8fd9\u6d89\u53ca\u5230\u89e3\u6790\u7cfb\u7edf\u63d0\u4f9b\u7684\u8bbe\u5907\u4fe1\u606f\uff0c\u5305\u62ec\u8bbe\u5907\u540d\u79f0\u3001\u578b\u53f7\u3001\u5e8f\u5217\u53f7\u7b49\u3002<\/p>\n<\/p>\n<p><p>\u4f7f\u7528AppleScript\uff0c\u6211\u4eec\u53ef\u4ee5\u518d\u6b21\u5229\u7528<code>system_profiler SPUSBDataType<\/code>\u547d\u4ee4\u6765\u83b7\u53d6\u8be6\u7ec6\u7684\u8bbe\u5907\u4fe1\u606f\u3002\u63a5\u7740\uff0c\u53ef\u4ee5\u901a\u8fc7\u89e3\u6790\u547d\u4ee4\u7684\u8f93\u51fa\u6765\u67e5\u627e\u7279\u5b9a\u7684\u8bbe\u5907\u5c5e\u6027\u3002<\/p>\n<\/p>\n<p><p>\u4f8b\u5982\uff0c\u4ee5\u4e0bAppleScript\u811a\u672c\u5c55\u793a\u4e86\u5982\u4f55\u83b7\u53d6\u5e76\u89e3\u6790USB\u8bbe\u5907\u7684\u5e8f\u5217\u53f7\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-applescript\">set usbInfo to do shell script &quot;system_profiler SPUSBDataType&quot;<\/p>\n<p>set serialNumber to extractSerialNumberFrom(usbInfo)<\/p>\n<p>-- \u6b64\u5904\u9700\u8981\u5b9a\u4e49\u4e00\u4e2aextractSerialNumberFrom\u51fd\u6570\u7528\u4ee5\u89e3\u6790\u5e8f\u5217\u53f7<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4ee3\u7801\u7247\u6bb5\u4e2d\uff0c\u6211\u4eec\u9996\u5148\u83b7\u53d6\u4e86USB\u8bbe\u5907\u7684\u5168\u90e8\u4fe1\u606f\uff0c\u7136\u540e\u8c03\u7528\u4e00\u4e2a\u81ea\u5b9a\u4e49\u51fd\u6570<code>extractSerialNumberFrom<\/code>\u6765\u63d0\u53d6\u5e8f\u5217\u53f7\u3002\u8fd9\u8981\u6c42\u4e00\u5b9a\u7684\u5b57\u7b26\u4e32\u5904\u7406\u6280\u5de7\uff0c\u4ee5\u4ece\u8f83\u4e3a\u590d\u6742\u7684\u6587\u672c\u8f93\u51fa\u4e2d\u51c6\u786e\u5730\u63d0\u53d6\u9700\u8981\u7684\u4fe1\u606f\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u9488\u5bf9\u7279\u5b9aUSB\u8bbe\u5907\u505a\u51fa\u54cd\u5e94<\/h3>\n<\/p>\n<p><p>\u68c0\u6d4b\u5230\u7279\u5b9aUSB\u8bbe\u5907\u7684\u8fde\u63a5\u4e4b\u540e\uff0c\u6211\u4eec\u53ef\u80fd\u9700\u8981\u57fa\u4e8e\u8be5\u8bbe\u5907\u6267\u884c\u7279\u5b9a\u7684\u52a8\u4f5c\u3002\u8fd9\u53ef\u80fd\u5305\u62ec\u542f\u52a8\u5e94\u7528\u7a0b\u5e8f\u3001\u5f39\u51fa\u901a\u77e5\u3001\u6216\u6267\u884c\u81ea\u5b9a\u4e49\u811a\u672c\u7b49\u3002<\/p>\n<\/p>\n<p><p>\u5728AppleScript\u4e2d\uff0c\u53ef\u4ee5\u6839\u636e\u8bbe\u5907\u4fe1\u606f\u6761\u4ef6\uff0c\u6267\u884c\u76f8\u5e94\u7684\u64cd\u4f5c\u3002\u4f8b\u5982\uff0c\u5982\u679c\u6211\u4eec\u5e0c\u671b\u5728\u8fde\u63a5\u7279\u5b9a\u7684USB\u8bbe\u5907\u65f6\u81ea\u52a8\u6253\u5f00\u4e00\u4e2a\u5e94\u7528\u7a0b\u5e8f\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-applescript\">if serialNumber is equal to &quot;\u7279\u5b9a\u5e8f\u5217\u53f7&quot; then<\/p>\n<p>    tell application &quot;\u7279\u5b9a\u5e94\u7528&quot; to activate<\/p>\n<p>end if<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u6bb5\u4ee3\u7801\u4e2d\uff0c\u6211\u4eec\u68c0\u67e5\u4e86\u8bbe\u5907\u7684\u5e8f\u5217\u53f7\uff0c\u5982\u679c\u4e0e\u6211\u4eec\u6307\u5b9a\u7684\u5e8f\u5217\u53f7\u5339\u914d\uff0c\u5219\u4f1a\u901a\u8fc7<code>tell application<\/code>\u8bed\u53e5\u6765\u542f\u52a8\u4e00\u4e2a\u5e94\u7528\u7a0b\u5e8f\u3002\u8fd9\u5c31\u5b9e\u73b0\u4e86\u5bf9\u7279\u5b9aUSB\u8bbe\u5907\u505a\u51fa\u81ea\u5b9a\u4e49\u54cd\u5e94\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u7ed3\u5408\u5176\u4ed6\u811a\u672c\u548c\u5e94\u7528<\/h3>\n<\/p>\n<p><p>\u7531\u4e8eAppleScript\u672c\u8eab\u5728\u4e0e\u786c\u4ef6\u4ea4\u4e92\u65b9\u9762\u7684\u80fd\u529b\u8f83\u4e3a\u6709\u9650\uff0c\u56e0\u6b64\uff0c\u5728\u5b9e\u73b0USB\u8bbe\u5907\u68c0\u6d4b\u548c\u5904\u7406\u65f6\uff0c\u5f80\u5f80\u9700\u8981\u4e0e\u5176\u4ed6\u811a\u672c\u8bed\u8a00\u6216\u5e94\u7528\u7a0b\u5e8f\u7ed3\u5408\u4f7f\u7528\u3002<\/p>\n<\/p>\n<p><p>\u4f8b\u5982\uff0c\u53ef\u4ee5\u4f7f\u7528Python\u811a\u672c\u6765\u5904\u7406\u66f4\u590d\u6742\u7684\u8bbe\u5907\u4fe1\u606f\u89e3\u6790\u548c\u76d1\u63a7\u4efb\u52a1\uff0c\u7136\u540e\u4eceAppleScript\u8c03\u7528\u8fd9\u4e9b\u811a\u672c\u3002\u6216\u8005\uff0c\u4f7f\u7528\u7b2c\u4e09\u65b9\u5e94\u7528\u5982Keyboard Maestro\u6765\u76d1\u63a7USB\u4e8b\u4ef6\uff0c\u518d\u89e6\u53d1AppleScript\u811a\u672c\u3002<\/p>\n<\/p>\n<p><p>\u7ed3\u5408\u4f7f\u7528\u4e0d\u540c\u7684\u5de5\u5177\u548c\u8bed\u8a00\u53ef\u4ee5\u6781\u5927\u5730\u6269\u5c55AppleScript\u5b9e\u73b0USB\u8bbe\u5907\u68c0\u6d4b\u7684\u80fd\u529b\u548c\u7075\u6d3b\u6027\uff0c\u4f7f\u5176\u80fd\u591f\u6ee1\u8db3\u66f4\u591a\u7279\u5b9a\u7684\u9700\u6c42\u548c\u573a\u666f\u3002<\/p>\n<\/p>\n<p><p>\u901a\u8fc7\u4e0a\u8ff0\u6b65\u9aa4\uff0c\u4f7f\u7528AppleScript\u7f16\u5199\u4ee3\u7801\u5b9e\u73b0\u5bf9USB\u8bbe\u5907\u7684\u6709\u6548\u68c0\u6d4b\u4e0e\u54cd\u5e94\u4e0d\u4ec5\u6210\u4e3a\u53ef\u80fd\uff0c\u800c\u4e14\u53ef\u4ee5\u7075\u6d3b\u5e94\u5bf9\u5404\u79cd\u81ea\u52a8\u5316\u9700\u6c42\u3002\u4e0d\u8fc7\uff0c\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u8fd9\u4e00\u8fc7\u7a0b\u53ef\u80fd\u9700\u8981\u4e00\u5b9a\u7684\u7f16\u7a0b\u7ecf\u9a8c\u548c\u5bf9macOS\u7cfb\u7edf\u8f83\u6df1\u5165\u7684\u4e86\u89e3\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p><strong>1. \u5982\u4f55\u4f7f\u7528AppleScript\u6765\u68c0\u6d4bUSB\u8bbe\u5907\u7684\u8fde\u63a5\uff1f<\/strong><br \/>\nAppleScript\u662f\u4e00\u79cd\u5f3a\u5927\u7684\u811a\u672c\u8bed\u8a00\uff0c\u53ef\u4ee5\u8fd0\u884c\u5728Mac\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u3002\u8981\u4f7f\u7528AppleScript\u6765\u68c0\u6d4bUSB\u8bbe\u5907\u7684\u8fde\u63a5\uff0c\u60a8\u53ef\u4ee5\u6309\u4e0b\u9762\u7684\u6b65\u9aa4\u8fdb\u884c\u64cd\u4f5c\uff1a<\/p>\n<ul>\n<li>\u9996\u5148\uff0c\u6253\u5f00AppleScript\u7f16\u8f91\u5668\uff0c\u8fd9\u662f\u4e00\u4e2a\u9884\u88c5\u5728Mac\u4e0a\u7684\u5e94\u7528\u7a0b\u5e8f\u3002<\/li>\n<li>\u7136\u540e\uff0c\u521b\u5efa\u4e00\u4e2a\u65b0\u7684AppleScript\u6587\u4ef6\uff0c\u5e76\u5c06\u5176\u4fdd\u5b58\u4e3a\u811a\u672c\u3002<\/li>\n<li>\u63a5\u4e0b\u6765\uff0c\u4f7f\u7528\u4ee5\u4e0b\u4ee3\u7801\u7247\u6bb5\u6765\u7f16\u5199\u811a\u672c\uff1a<\/li>\n<\/ul>\n<pre><code>property devices : {}\n\non adding folder items to this_folder after receiving added_items\n    repeat with an_item in added_items\n        set the item_info to info for an_item\n        if (alias of the item_info) is false and (file type of the item_info) is not &quot;fold&quot; then\n            set the device_name to name of the item_info\n            if device_name is not in devices then\n                set end of devices to device_name\n                display dialog &quot;USB device connected: &quot; &amp; device_name\n            end if\n        end if\n    end repeat\nend adding folder items to\n<\/code><\/pre>\n<ul>\n<li>\u6700\u540e\uff0c\u4fdd\u5b58\u5e76\u8fd0\u884c\u811a\u672c\u3002\u73b0\u5728\uff0c\u6bcf\u6b21\u6709USB\u8bbe\u5907\u8fde\u63a5\u5230\u60a8\u7684Mac\u4e0a\uff0c\u811a\u672c\u90fd\u4f1a\u5f39\u51fa\u4e00\u4e2a\u5bf9\u8bdd\u6846\u663e\u793aUSB\u8bbe\u5907\u7684\u540d\u79f0\u3002<\/li>\n<\/ul>\n<p><strong>2. \u6709\u54ea\u4e9b\u65b9\u6cd5\u53ef\u4ee5\u4f7f\u7528AppleScript\u6765\u68c0\u6d4bUSB\u8bbe\u5907\u7684\u8fde\u63a5\uff1f<\/strong><br \/>\n\u4f7f\u7528AppleScript\u7f16\u5199\u811a\u672c\u4ee5\u68c0\u6d4bUSB\u8bbe\u5907\u8fde\u63a5\u7684\u65b9\u6cd5\u6709\u5f88\u591a\u3002\u9664\u4e86\u4e0a\u8ff0\u7684\u6587\u4ef6\u5939\u76d1\u63a7\u65b9\u6cd5\u5916\uff0c\u60a8\u8fd8\u53ef\u4ee5\u5c1d\u8bd5\u4f7f\u7528\u4ee5\u4e0b\u65b9\u6cd5\uff1a<\/p>\n<ul>\n<li>\u4f7f\u7528\u7cfb\u7edf\u4e8b\u4ef6\uff08System Events\uff09\u5e94\u7528\u6765\u76d1\u542cUSB\u8bbe\u5907\u7684\u8fde\u63a5\u548c\u65ad\u5f00\u4e8b\u4ef6\u3002\u60a8\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u4ee3\u7801\u7247\u6bb5\u6765\u5b9e\u73b0\uff1a<\/li>\n<\/ul>\n<pre><code>tell application &quot;System Events&quot;\n    repeat until exists (USB device inserted)\n        delay 1\n    end repeat\n    display dialog &quot;USB device connected!&quot;\nend tell\n<\/code><\/pre>\n<ul>\n<li>\u4f7f\u7528Shell\u811a\u672c\u7ed3\u5408AppleScript\u6765\u6267\u884c\u4e00\u4e9b\u547d\u4ee4\u884c\u5de5\u5177\uff0c\u4f8b\u5982<code>system_profiler<\/code>\u547d\u4ee4\uff0c\u8be5\u547d\u4ee4\u53ef\u4ee5\u5217\u51fa\u7cfb\u7edf\u786c\u4ef6\u4fe1\u606f\u3002\u60a8\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u4ee3\u7801\u7247\u6bb5\uff1a<\/li>\n<\/ul>\n<pre><code>do shell script &quot;system_profiler SPUSBDataType | grep \\&quot;Device Speed:\\&quot;&quot;\ndisplay dialog &quot;USB device connected!&quot;\n<\/code><\/pre>\n<p><strong>3. \u6211\u53ef\u4ee5\u4f7f\u7528AppleScript\u4e0e\u5176\u4ed6\u7f16\u7a0b\u8bed\u8a00\u4e00\u8d77\u4f7f\u7528\u6765\u68c0\u6d4bUSB\u8bbe\u5907\u7684\u8fde\u63a5\u5417\uff1f<\/strong><br \/>\n\u662f\u7684\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528AppleScript\u4e0e\u5176\u4ed6\u7f16\u7a0b\u8bed\u8a00\u4e00\u8d77\u4f7f\u7528\u6765\u68c0\u6d4bUSB\u8bbe\u5907\u7684\u8fde\u63a5\u3002AppleScript\u53ef\u4ee5\u4e0e\u5176\u4ed6\u8bed\u8a00\u8fdb\u884c\u4e92\u64cd\u4f5c\uff0c\u4f8b\u5982JavaScript\u3001Python\u7b49\u3002\u60a8\u53ef\u4ee5\u4f7f\u7528AppleScript\u4f5c\u4e3a\u6865\u6881\uff0c\u4e0e\u5176\u4ed6\u8bed\u8a00\u8fdb\u884c\u901a\u4fe1\u5e76\u5171\u4eab\u6570\u636e\u3002\u8fd9\u6837\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u5176\u4ed6\u8bed\u8a00\u7f16\u5199\u66f4\u590d\u6742\u7684\u903b\u8f91\u548c\u66f4\u7cbe\u786e\u7684USB\u8bbe\u5907\u8fde\u63a5\u68c0\u6d4b\u4ee3\u7801\u3002\u4f8b\u5982\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528AppleScript\u6765\u76d1\u542cUSB\u8bbe\u5907\u7684\u8fde\u63a5\u4e8b\u4ef6\uff0c\u5e76\u5c06\u6570\u636e\u4f20\u9012\u7ed9Python\u811a\u672c\u8fdb\u884c\u8fdb\u4e00\u6b65\u5904\u7406\u548c\u5206\u6790\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528AppleScript\u7684\u7cfb\u7edf\u4e8b\u4ef6\u65b9\u6cd5\u6216Shell\u811a\u672c\u6765\u68c0\u6d4bUSB\u8bbe\u5907\u7684\u8fde\u63a5\uff0c\u7136\u540e\u4f7f\u7528<code>do shell script<\/code>\u548c<code>do JavaScript<\/code>\u547d\u4ee4\u6765\u8c03\u7528\u5176\u4ed6\u811a\u672c\u8bed\u8a00\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u4f7f\u7528AppleScript\u7f16\u5199\u4ee3\u7801\u5b9e\u73b0\u9488\u5bf9USB\u8bbe\u5907\u7684\u8fde\u63a5\u68c0\u6d4b\uff0c\u5305\u62ec\u76d1\u542cUSB\u8bbe\u5907\u7684\u63d2\u5165\u4e8b\u4ef6\u3001\u83b7\u53d6\u5df2\u8fde\u63a5USB [&hellip;]","protected":false},"author":3,"featured_media":260591,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[37],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/260581"}],"collection":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/comments?post=260581"}],"version-history":[{"count":0,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/260581\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/260591"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=260581"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=260581"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=260581"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}