Apple Event: May 7th at 7 am PT

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

AppleScript Error -1728 - Can't get document 1

I'm trying to find out why my AppleScripts I use for Numbers automation are not working this month.


I have several scripts that I have built for processing expense reports and I ran them the last time in February without any problems. Whenever I run them now I get the following error message:


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


I have looked at this post: https://discussions.apple.com/thread/7475864?answerId=29854515022#29854515022


I have not found the cache file listed in the ~/Library/Caches directory.... wondering where the heck Numbers might be sticking this file so I can delete it and see if this solves my problem.


Does anyone else have this problem or know where I might find the cache file for Numbers?


Thanks,


Rich

MacBook Pro with Retina display, OS X El Capitan (10.11.4)

Posted on Apr 14, 2016 8:44 AM

Reply
Question marked as Best reply

Posted on Apr 14, 2016 10:21 AM

Solved this problem....


I had to delete the container file at ~/Library/Containers/com.apple.iWork.Numbers and my scripts are back and working again!

2 replies

AppleScript Error -1728 - Can't get document 1

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.