How to script Table Delete Rows?
Posted: 2012-10-16 11:10:01
I'm on OS X 10.6.8. NWP 2.04
I've written several Apple scripts to manipulate tables, so that I can call them by name with LaunchBar. I'm stumped on how to delete selected rows in a table. In the manual, P. 418, are the examples:
By analogy with these, either of:
should work, but neither does, stopping with an error: "Unknown Menu Item Path"
I notice one difference between these and the previous two : "Rows", a choice in the Table Delete sub-menu, is also a choice in the Table Select sub-menu. In the first two examples, on the other hand, "Bold" and "Times" do not appear in any other sub-menu. In fact,
both work, because they define unique sub-menu items.
Steve
I've written several Apple scripts to manipulate tables, so that I can call them by name with LaunchBar. I'm stumped on how to delete selected rows in a table. In the manual, P. 418, are the examples:
Code: Select all
Do Menu Macro with macro "FormatFontTimes"
Do Menu Macro with macro "FontBold"
Code: Select all
Do Menu Macro with macro "TableDeleteRows"
Do Menu Macro with macro "DeleteRows"
I notice one difference between these and the previous two : "Rows", a choice in the Table Delete sub-menu, is also a choice in the Table Select sub-menu. In the first two examples, on the other hand, "Bold" and "Times" do not appear in any other sub-menu. In fact,
Code: Select all
Do Menu Macro with macro "Times"
Do Menu Macro with macro "Bold"
Steve