doekman
doekman

Reputation: 19288

What does «event coreslct» do in AppleScript

I have an AppleScript source with this code:

«event coreslct» (last row of table X of document Y)
insert rows selection position below number of rows Z

The double angle brackets mean, the enclosed words are raw format or event code.

So my question is: what is the command of event code event coreslct...

Upvotes: 2

Views: 304

Answers (2)

l'L'l
l'L'l

Reputation: 47274

The «event coreslct» as used in your example is specific to Microsoft Excel, and loosely translates to "select the cells concerned", or simply "select". To determine precisely what the definition of the command is you can perhaps try the instructions below:

According to Microsoft's KB:

To use the program-specific capabilities of Excel for Mac with AppleScript, open and examine the AppleScript dictionary that is supplied with Excel for Mac.

To use the Script Editor open the dictionary in Excel for Mac, follow these steps:

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.

In the window that appears, you can select an object or a class to view its description. You can also click the bold suite names to view an whole suite at one time. You can use the descriptions in this window to create scripts in the Script Editor to control Excel for Mac.

The versions of Excel for Mac listed at the beginning of this article support a very large number of events. For a complete list, follow the instructions in this article to open Excel for Mac in the AppleScript Script Editor.

I don't have access to the Applescript dictionary mentioned above, however, it was ported to Python at some point, and you can view a complete set of commands here.

Upvotes: 1

dj bazzie wazzie
dj bazzie wazzie

Reputation: 3542

It's the select command of Microsoft Word. Wrap around a tell "Microsoft Word" block around it and it will be corrected using the application's dictionary.

Upvotes: 0

Related Questions