applescript numbers - rearrange / move columns
Hi,
I just started to use some applescript to do recurring tasks - and have some problem with the right way to use it. (Mac, Numbers 10.0)
I have a table with addresses in each row.
Now I have first name, last name, email, phone, country, city, street, zip company in each column.
But I want columns in a different order.
In the end it should be
company, first name, last name, street, city, country, phone, email
with a mouse you just pick the column and pull it to the new location to insert it.
I tried to use applescript to get it done.
I found the move command,
as first step and tried to move column "J" ("ZIP") to before "G" ("CITY")
So I tried unsuccessfully :
tell application "Numbers"
move column "J" of table 1 of sheet 1 of document 1 to before column "G"
end tell
error: column "G" cannot be read
I cannot get it to work and when searching for answers I find relatively complicated ways to move columns.
what is the easiest way to do it ?
thanks.
Mac mini 2018 or later