A weird error in Numbers
A weird error in Numbers
- Subject: A weird error in Numbers
- From: Deivy Petrescu via AppleScript-Users <email@hidden>
- Date: Mon, 27 Jan 2020 10:40:53 -0500
Before I write what the problem is, a brief history.
I had an app that worked really well that allowed me to create either Numbers
or Excel spreadsheet for the classes I teach.
It would create an attendance sheet with all days of classes, activities sheet,
exam sheet and a “Final” sheet where everything was computed (grade,
attendance, etc.)
The app used ASOC (thanks Shane!) and it had to interact with other apps,
namely Excel and Numbers.
Well, it is finally caput. Apple took care of it.
I really don’t know if i can fix it, because it might not allow me to use AS to
manipulate either of the above apps.
However I don’t even have time newt try.
So, I had to get the scripts, which are kind of ready and create the sheets.
While creating a sheet, I came across this weird error.
Here it is:
<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>
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