Weird error in Numbers
Weird error in Numbers
- Subject: Weird error in Numbers
- From: Deivy Petrescu via AppleScript-Users <email@hidden>
- Date: Mon, 27 Jan 2020 10:44:17 -0500
Sorry, press the send button before finishing the letter.
Here is the error:
<script>
set estudantes to {1, 2, 3, 4, 5, 6}
set cc to 4 -- <-----------------------------------------------------------
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:cc}
end tell
end tell
end tell
</script>
If you set cc to any value other than 5, the script runs fine, however, cc=5 it
gives me this error:
error "Numbers got an error: Invalid column count" number -10000
Can anyone else corroborate this?
Thanks
Deivy Petrescu
Deivy Petrescu
email@hidden
_______________________________________________
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