AppleScript简介
Wiki:en.wikipedia.org/wiki/AppleS…
Apple官方存档:developer.apple.com/library/arc…
- Mac OS 9:Scripting Addtion
- OS X 10.4 Tiger:Automator应用
- OS X 10.5 Leopard:Scripting Addition新增OSAXHandlers属性
- OX X 10.6 Snow Leopard:AppleScriptObjC Release Notes
- OX X 10.9 Mavericks:Script Libraries
- OX X 10.10 Yosemite:JavaScript for Automation Release Notes
- OX X 10.11 El Capitan:About System Integrity Protection on your Mac
- macOS 10.14 Mojave:macOS Mojave 10.14 Release Notes
- Scripting additions can no longer be globally installed
- macOS 10.15 Catalina:Notarizing Your Mac Software for macOS Catalina
AppleScript书籍:
AppleScript社区
AppleScript工具
- latenightsw.com :Script Debugger,SD Notary
- redsweater.com :FastScripts
- www.satimage.fr :Smile2 beta
- pfiddlesoft.com (原 prefabsoftware.com ):UI Browser
AppleScript资讯
AppleScript示例
AppleScriptObjc
John C. Welch: "对于 ASOC 用户:如果您将 Xcode 13.x 中的
/Applications/Xcode.app/Contents/Developer/Library/Xcode/Templates/Project Templates/macOS/Other/AppleScrip App.xctemplate
复制到/Applications/Xcode-beta.app/Contents/Developer/Library/Xcode/Templates/Project Templates/Other/
,那么您仍然可以使用 Xcode 14 beta 创建 ASOC 应用程序"。
Stay-open Appliction
官方文档:idle and quit Handlers for Stay-Open Applications
- AppleScript示例1:stackoverflow.com/questions/5…
my addObserver:me selector:"appLaunchNotification:" |name|:(current application's NSWorkspaceDidLaunchApplicationNotification) object:(missing value)
- AppleScript示例2:www.macscripter.net/t/eventkit-…
on run
set theEventStore to ca's class "EKEventStore"'s new()
ca's NSNotificationCenter's defaultCenter()'s addObserver:me selector:"eventStoreChanged:" |name|:"EKEventStoreChangedNotification" object:theEventStore
end run
- JavaScript for Automation示例:stackoverflow.com/questions/4…
$.NSWorkspace.sharedWorkspace.notificationCenter.addObserverSelectorNameObject(controller, 'appDidLaunch:', $.NSWorkspaceDidLaunchApplicationNotification, undefined)
AppleEvent简介
官方文档:Scripting Bridge
- SwiftAutomation
- [macOS翻译]在 macOS Mojave 上的 Mac 应用程序中执行 AppleScript 和处理 AppleEvent 沙盒
- [macOS翻译]进程间通信——IPC综述
Scripting Addition简介
Apple官方文档:
其他:
A scripting addition on Mac OS 9 is a resource file of type 'osax‘. On Mac OS X it can also be a bundle with extension .osax. A scripting addition is often referred to as an osax (plural osaxen). On Mac OS 9, osaxen live in the System Folder, in its Scripting Additions subfolder. On Mac OS X the supplied osaxen live in /System/Library/ScriptingAdditions; the user may add osaxen to /Library/ScriptingAdditions or to ~/Library/ScriptingAdditions, according to the domain of their desired availability.