Numbers got an error: Can’t get document 1." number -1728 from documen

Have you found that with the Numbers update from April 1st, Apple broke documents?

///// fails with 3.2, worked in 3.1 /////

choose file with prompt "Choose Numbers file "
set files_to_get to result
tell application “Numbers”
open files_to_get
set thisDocument to document 1
end tell

Result:
error “Numbers got an error: Can’t get document 1.” number -1728 from document 1

Mac OS X 10.9.2
AppleScript 2.3.1
Numbers 3.2

Hi,

the syntax works here with Numbers 3.2, even this works


choose file with prompt "Choose Numbers file "
set file_to_get to result
tell application "Numbers"
	set thisDocument to (open file_to_get)
end tell

Thanks for the reply, Numbers must have gotten it’s wires crossed.

Repaired Permissions , but that did nothing

I deleted all files with Number & iWork related files from
/Library/
/Users/ron13/Library/

and now everything is behaving.

:slight_smile:

Thanks Ronald13!

I deleted
/Users/~user/Library/Caches/com.apple.iWork.Numbers

…and AppleScript worked again.