Ich habe ein Dokument über Nummern mit 3 Blättern.
1-Dateneingabetabelle (basierend auf dem "Datenblatt").
2-Kopien-Dada-Tabelle mit:
-- I.eine zusätzliche Spalte mit der folgenden Formel
if(reference no of data entery=reference no of this row;1;0)
-- II.filter-Tabelle, größer als 0
Ich möchte Applescript verwenden, um die Daten von Blatt 1 bis Blatt 2 zu füllen
tell application "Numbers" to ¬
tell table 2 of sheet 1 of document (1)
set getRef to the value of cell "A1"
set fileinfolder to the value of cell "A2"
set Outof to the value of cell "A3"
set valqora to the value of cell "A9"
set valqno to the value of cell "A10"
set valQout to the value of cell "A11"
set valcomment to the value of cell "A13"
set valnoclue to the value of cell "A14"
set valhard to the value of cell "A15"
set valok to the value of cell "A16"
set valeasy to the value of cell "A17"
end tell
tell application "Numbers" to ¬
tell table 1 of sheet 3 of document (1)
set the value of cell "K2" to the value of fileinfolder
set the value of cell "L2" to the value of Outof
set the value of cell "M2" to the value of valqora
set the value of cell "N2" to the value of valqno
set the value of cell "O2" to the value of valQout
set the value of cell "P2" to the value of valcomment
set the value of cell "Q2" to the value of valnoclue
set the value of cell "R2" to the value of valhard
set the value of cell "S2" to the value of valok
set the value of cell "T2" to the value of valeasy
end tell
Ich rezitiere immer wieder Syntaxfehler – Wert „true“ kann nicht abgerufen werden
Entfernen Sie für Ihren zweiten Zuweisungsblock das zweite „der Wert von“ aus jeder Zeile, sodass sie so aussehen:
set the value of cell "K2" to fileinfolder
Dieser zweite „Wert“ ist überflüssig.
Übrigens ist der Fehler insofern eigenartig, als dass es sich wahrscheinlich um einen 'Skriptfehler' handeln sollte, der beispielsweise nicht den Wert '1.0' erhalten kann. Welche Zelle auch immer den Fehler erzeugt, zeigt dem Skript wahrscheinlich an, dass es sich um einen booleschen Wert oder so etwas handelt. Aber das ist nicht die Ursache Ihres Problems, sondern nur ein Symptom.
NB Um dies zu testen, habe ich einfach eine Spalte mit Zahlen von 1 bis 17 verwendet, um den ersten Block von Aufgaben bereitzustellen.