What is the filepath that your script is using?
That particular error message is frustratingly uninformative, but you are correct that it could be a problem with the FilePath. We'd need to see the expression you use for the FilePath to be sure.
If you are saving to a shared directory on the iMac, this FilePath must exactly match the filepath used on the Macbook to mount and access this shared directory when accessing this folder directly. And the volume must be mounted at the time the PDF is saved.
If i understand this correctly, the shared Folder is to save your receipt PDF's is on your iMac and the Macbook user uses the iMac folder. Check the permissions on the shared folder by doing a Get Info.... CMD I... on that folder. At bottom is the permissions section...
1) Read and Write
All contents in the folder..
2) User group must be your secretary and you!
One last thought, You should set up your database as a HOST and secretary and you act as clients by Open Remote....
If you let her execute by Shared Application, it is not recommended.
Thanks a lot for your replies. Here is where I stand :
- the shared folder already has the permission (read and write for all content) > I can Print & Save as a Pdf from the Secretary's Macbook without any problem.
- the folder is mounted.
- the Database is already used as a HOST, and myself and the secretary use it as clients.
I beliebe that, as mentionned in PhilModJunk's reply, the issue is the FilePath.
I have tried many different FilePath, but I have to admit that I am getting confused with the different options...
- should I use filemac:/ , afp:/, fmnet:/ ... ("Other users can access shared folders on this computer, and administrators all volumes, at afp://192.168.1.15/ or “French Toast iMac”.)
Is there a way to "find out" what the FilePath is ?
I tried to save as Pdf, then "Get Info" and the FilePath shown is
afp://French Toast iMac._afpovertcp._tcp.local/Accounting/file_name
I then tried to use this FilePath (without file_name obviously) but it didn't work.
Me again... After multiple attempts, I finally got the right FilePath !
It was - simply - filemac:/accounting/file_name
Thaks again for your help !