I am trying to write an AppleScript to open a Numbers document, which is stored in the Numbers folder on my iCloud drive, so that I can access a cell value and create a reminder with it (or otherwise notify myself of this value).
When I try to access the file directly using the symlink to my iCloud I created in my home folder, Numbers says the file doesn't exist.
I found the following on a blog post, though I am not sure I am using it right.
set the defaultDestinationFolder to "/Users/luketimothy/Desktop" set filePath to "/Users/luketimothy/Library/" & "Mobile Documents:com~apple~Numbers:Documents:Budget.numbers" tell application "Numbers" activate try open filePath on error end try end tell
This script also results in a "file doesn't exist" error.
I tried copying the file into my Documents folder, but I got the same error (and the file doesn't show up in the Documents folder in finder either, even though if I try to copy it again I am asked if I wish to overwrite)
I can't seem to access the Numbers folder in my iCloud folder from the terminal either, which might allow me to use pwd to get an absolute path.
What can I do? Is there some restriction on access to this Numbers folder?