====== AppleScript ====== ===== 語法 ===== * list ≈ 陣列 * repeat ≈ 迴圈 * 字串化為陣列: * ''characters of''(([[https://developer.apple.com/library/archive/documentation/LanguagesUtilities/Conceptual/MacAutomationScriptingGuide/ManipulateText.html|Mac Automation Scripting Guide: Manipulating Text]])) * ''characters x thru y'' * ''words of''(([[https://stackoverflow.com/questions/42127438/split-a-string-into-multiple-variables-applescript|Split a string into multiple variables AppleScript - Stack Overflow]])) * 暫停執行:''delay n''(秒)(([[https://alvinalexander.com/blog/post/mac-os-x/applescript-delay-command|The AppleScript delay command | alvinalexander.com]])) ===== 參考 ===== * [[https://alvinalexander.com/blog/post/mac-os-x/applescript-list-examples|AppleScript “list” examples | alvinalexander.com]] * [[https://stackoverflow.com/questions/32952847/getting-first-few-characters-of-a-string-with-applescript|Getting first few characters of a string with applescript - Stack Overflow]]