行または列を追加する。用語説明(shift + command + o)を参照。指定した列または行の前または後ろに列はたは行を追加できる。
マウス操作で行うような、矩形選択した範囲のセルをドラッグアンドドロップするようなコマンドはないようだ(多分)。
--列の追加 add column after add column before --列の追加 add row above add row below --列または行の削除 remove
範囲の選択のときに述べた通り、列を表現する方法として、column "A"
、column 1
、range "A"
のどれでも可。
tell application "Numbers" activate if ((count of document) = 0) then set tgtDoc to make new document end if tell tgtDoc set tgtSheet to sheet 1 tell tgtSheet tell table 1 -- tabel preparation set header column count to 0 set header row count to 0 set countOfCells to count of every cell set i to 0 repeat countOfCells times set i to (i + 1) set value of cell i to i end repeat -- add row or column add column after column "A" add column after range "A" add column after column 1 add column before column "B" add row below row 1 add row above row 2 --romove row or column remove column "A" remove row 1 end tell end tell end tell end tell
translated with DeepL
Add a row or column. See the glossary (shift + command + o). You can add a column or row before or after the specified column or row.
There doesn't seem to be a command for dragging and dropping a rectangular selection of cells, as you would do with a mouse (maybe).
````applescript --Add column after add column after add column before
--add column above add row above add row below
--remove column or row remove ````
As mentioned when selecting a range, you can use any of the following methods to represent a column: column "A"
, column 1
, or range "A"
.