• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Weird error in Numbers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Weird error in Numbers
      • From: Takaaki Naganoya via AppleScript-Users <email@hidden>
    • Re: Weird error in Numbers
      • From: Deivy Petrescu via AppleScript-Users <email@hidden>
    • Re: Weird error in Numbers
      • From: Yvan KOENIG via AppleScript-Users <email@hidden>
    • Re: Weird error in Numbers
      • From: Jean-Christophe Helary via AppleScript-Users <email@hidden>
  • Prev by Date: A weird error in Numbers
  • Next by Date: Re: Weird error in Numbers
  • Previous by thread: A weird error in Numbers
  • Next by thread: Re: Weird error in Numbers
  • Index(es):
    • Date
    • Thread