• 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
Re: Weird error in Numbers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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:59:21 +0100

Oops, I let a typo.
Must be :
repeat (cc-2) times.  Edited below.

Yvan KOENIG running High Sierra 10.13.6 in French (VALLAURIS, France) lundi 27
janvier 2020  16:59:07

> Le 27 janv. 2020 à 16:55, Yvan KOENIG via AppleScript-Users
> <email@hidden> a écrit :
>
> 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 - 2) times -- was
> erroneously (cc - 1)
>                                               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

  • Follow-Ups:
    • Re: Weird error in Numbers
      • From: Yvan KOENIG via AppleScript-Users <email@hidden>
References: 
 >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>)

  • Prev by Date: Re: Weird error in Numbers
  • Next by Date: Re: Weird error in Numbers
  • Previous by thread: Re: Weird error in Numbers
  • Next by thread: Re: Weird error in Numbers
  • Index(es):
    • Date
    • Thread