AECreateAppleEvent(
Creates an Apple event with several important attributes but no parameters.
macOS 10.0+
Parameters
theAEEventClassThe event class of the Apple event to create. This parameter becomes accessible through the keyEventClassAttr attribute of the Apple event. Some event classes are described in Event Class Constants. See AEEventClass.
theAEEventIDThe event ID of the Apple event to create. This parameter becomes accessible through the keyEventIDAttr attribute of the Apple event. Some event IDs are described in Event ID Constants. See AEEventID.
targetA pointer to an address descriptor. Before calling AECreateAppleEvent, you set the descriptor to identify the target (or server) application for the Apple event. This parameter becomes accessible through the keyAddressAttr attribute of the Apple event. See AEAddressDesc.
returnIDThe return ID for the created Apple event. If you pass a value of kAutoGenerateReturnID, the Apple Event Manager assigns the created Apple event a return ID that is unique to the current session. If you pass any other value, the Apple Event Manager assigns that value for the ID. This parameter becomes accessible through the keyReturnIDAttr attribute of the Apple event. The return ID constant is described in ID Constants for the AECreateAppleEvent Function. See AEReturnID.
transactionIDThe transaction ID for this Apple event. A transaction is a sequence of Apple events that are sent back and forth between the client and server applications, beginning with the client’s initial request for a service. All Apple events that are part of a transaction must have the same transaction ID. You can specify the kAnyTransactionID constant if the Apple event is not one of a series of interdependent Apple events. This parameter becomes accessible through the keyTransactionIDAttr attribute of the Apple event. This transaction ID constant is described in ID Constants for the AECreateAppleEvent Function. See AETransactionID.
resultA pointer to an Apple event. On successful return, the new Apple event. On error, a null descriptor (one with descriptor type typeNull). If the function returns successfully, your application should call the AEDisposeDesc(_:) function to dispose of the resulting Apple event after it has finished using it. See the AppleEvent data type.
Discussion
The AECreateAppleEvent function creates an empty Apple event. You can add parameters to the Apple event after you create it with the functions described in Apple Event Manager.
Version-Notes
Thread safe starting in OS X v10.2.
原文链接: AECreateAppleEvent( https://www.huajiangbk.com/newsview1213658.html
| 上一篇: 海内外舆论洞察:2024年苹果秋... | 下一篇: Apple event has ... |
推荐分享

- 1情趣大湿丨图解100种嘿嘿嘿... 22302
- 2明日花キララ:明日花绮罗年度... 8276
- 3君子兰什么品种最名贵 十大名... 4732
- 4明日花キララ(明日花绮罗)经... 4540
- 5十大致癌花卉排行榜,哪些花卉... 3984
- 6世界上最名贵的10种兰花图片... 3895
- 7花圈挽联怎么写? 3861
- 8鲜花养护:帝王花的养殖方法以... 3743
- 9兰花叶子扭的是什么兰 3673
- 10迷信说家里不能放假花 家里摆... 2361




