r/applescript • u/tarpus • Dec 09 '21
internal table overflow applescript
I keep getting this error, recently, when running apple script in terminal, "internal table overflow AppleScript"
Here is the code. Worked fine.
internal table overflow applescriptlaunch application "Address Book"
tell application "Address Book"
set myCard to make new person with properties {first name:"Homer", last name:"Simpson"}
tell myCard
make new address at end of addresses with properties {street:"", city:"", state:"", zip:"", country code:"", label:"home"}
make new phone at the end of phones with properties {value:+1914555555, label:"home"}
end tell
save addressbook
end tell
-- Also, but not needed - to open the card in Adddress Book
tell application "Address Book"
set myID to id of myCard
end tell
1
u/tarpus Dec 09 '21
Seems that the error is related to the " save address book" line. Without this line, the contact does not save. And, I don't know an alternative.
1
u/tarpus Dec 10 '21
This very simple code block, still, generates the error, 'internal table overflow:'
launch application "Contacts" tell application "Contacts" save end tell
1
u/CO_Automation Dec 10 '21
Can’t try it out right now but is addressbook a variable or object should it be save myCard
1
u/copperdomebodha Dec 10 '21
1
u/FGatemouth Jan 06 '22
I'm having the same error...
tell application "Contacts"saveend tellCauses the error 'Syntax Error - Internal table overflow'
The error does not happen on execution but during code interpreting.
Has the syntax of the "save" command changed?
1
u/[deleted] Jan 16 '22
Same error happens for me;
tell application "Contacts" to savereturns "Internal table overflow"
A few days ago I upgraded my system from 10.14 to 12.1