Re: Weird error in Numbers
Re: Weird error in Numbers
- Subject: Re: Weird error in Numbers
- From: Yvan KOENIG via AppleScript-Users <email@hidden>
- Date: Mon, 27 Jan 2020 16:55:54 +0100
Hello Deivy,
same behavior here running version 6.1 (6369) the late accepted by 10.13.6.
You may get rid of that with:
--<script>
set estudantes to {1, 2, 3, 4, 5, 6}
set cc to 5
tell application id "com.apple.iWork.Numbers"
set nudoc to make new document at front with properties {name:"A"}
tell nudoc
if not (exists its sheet 1) then make new sheet at the end of
sheets with properties {name:"Assessment"}
tell sheet 1
try
delete table 1
end try
set nutable to make new table with properties
{name:"Assessment", row count:((count estudantes) + 2), column count:2}
if cc > 2 then
tell nutable
repeat (cc - 1) times
add column after column -1
end repeat
end tell
end if
end tell
end tell
end tell
--</script>
I'm forced to start with 2 columns because my default template create a header
column.
Yvan KOENIG running High Sierra 10.13.6 in French (VALLAURIS, France) lundi 27
janvier 2020 16:55:50
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden