• 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 17:23:25 +0100

Maybe neater:

--<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
                        if cc is 5 then
                                set nutable to make new table with properties
{name:"Assessment", row count:((count estudantes) + 2), column count:4}
                                tell nutable to add column after column 4
                        else
                                set nutable to make new table with properties
{name:"Assessment", row count:((count estudantes) + 2), column count:cc}
                        end if
                end tell
        end tell
end tell
--</script>


Is it a deliberate choice to leave the name of sheet 1 as is if there was
already a sheet created by the default template ?

Yvan KOENIG running High Sierra 10.13.6 in French (VALLAURIS, France) lundi 27
janvier 2020  17:08:35
 _______________________________________________
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

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>)
 >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