Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/macos/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Macos “事件coreslct”在AppleScript中起什么作用_Macos_Applescript - Fatal编程技术网

Macos “事件coreslct”在AppleScript中起什么作用

Macos “事件coreslct”在AppleScript中起什么作用,macos,applescript,Macos,Applescript,我有一个包含以下代码的AppleScript源代码: «event coreslct» (last row of table X of document Y) insert rows selection position below number of rows Z 双尖括号的意思是,所附文字为或事件代码 所以我的问题是:事件代码event coreslct…的命令是什么。在其周围环绕一个告诉Microsoft Word块,它将使用应用程序的字典进行更正 示例中使用的«event coresl

我有一个包含以下代码的AppleScript源代码:

«event coreslct» (last row of table X of document Y)
insert rows selection position below number of rows Z
双尖括号的意思是,所附文字为或事件代码

所以我的问题是:事件代码event coreslct…的命令是什么。在其周围环绕一个告诉Microsoft Word块,它将使用应用程序的字典进行更正

示例中使用的«event coreslct»是特定于Microsoft Excel的,可以粗略地转换为选择相关的单元格,也可以简单地选择。要准确确定命令的定义,您可以尝试以下说明:

根据微软的知识库:

将Excel for Mac的程序特定功能用于 AppleScript,打开并检查正在使用的AppleScript字典 与Excel for Mac一起提供

要使用脚本编辑器在Excel for Mac中打开字典,请执行以下操作 这些步骤包括:

1. Start the Script Editor. To do this, follow these steps:
    a. Open your hard disk.
    b. Open the Applications folder.
    c. Open the AppleScript folder. For the Apple OS versions
       earlier than OSX, open the Apple Extras folder, and then open
       the AppleScript folder.
    d. Double-click Script Editor.
2. On the File Menu, click Open Dictionary.
3. In the Open Dictionary dialog box, select Microsoft Excel 
   (Application) in the Name list, and then click Open.
在出现的窗口中,可以选择要创建的对象或类 查看其描述。您还可以单击粗体套件名称以查看 一次一套。您可以使用本文档中的描述 在脚本编辑器中创建脚本以控制Excel的窗口 麦克

本文开头列出了Excel for Mac的版本 支持大量的活动。有关完整列表,请按照 本文中有关在AppleScript中打开Excel for Mac的说明 脚本编辑器


我无法访问上面提到的Applescript字典,但是,它在某个时候被移植到Python,您可以查看完整的命令集。

谢谢您的回答!我尝试将脚本封装在一个告诉应用程序Microsoft Word块中,但它没有被替换。。。有什么想法吗?重启Word,甚至是你的系统。问题是字典没有加载到脚本编辑器中。我现在收到一个错误:Microsoft Word收到一个错误:您试图访问的对象不存在该对象存在吗?您是否打开了文档Y,文档中是否有表X?错误似乎是不言自明的,它试图访问一个不再存在的对象。或者错误发生在第2行?错误发生在第1行。主要的问题仍然是:我在哪里可以找到这段代码。这是启用AppleScript的应用程序包中提供的sdef文件中的code属性吗?看起来coreslct是Excel 2011中的代码。它在您提到的Python字典中,但它不在我的Excel.sdef文件中…@doekman:Python移植字典顶部引用了一些链接;他们显然是苹果公司关于这个主题的邮件列表讨论,所以这可能会提供一些额外的信息。谷歌上弹出的信息似乎也不多,不幸的是,我只知道这些;它出现在所有Office应用程序中。除2016年在职外。。。