Unable to mount smb with osascript after Ventura 13.3.1 (a) update
Hi,
I have been successful in mounting the smb volume from my Synology NAS using Python script in the past but the access was denied since MacOS launch an update to Ventura 13.3.1 (a). The following are the code to access the volume:
import os
os.system("osascript -e 'mount volume \"smb://mysvr/Documents/Expense\"'")
ImportPath = '/Volumes/Documents/Expense/ABC.xlsx'
orginalfile = os.path.join(ImportPath)
ImportPath = '/Users/myname/Documents/Coding/XYZ.xlsx'
targetfile = os.path.join(ImportPath)
shutil.copy(orginalfile, targetfile)
os.system("umount /Volumes/Documents/Expense")
The error is pointed to "shut.copy..." with the error message as "FileNotFoundError: [Errno 2] No such file or directory: '/Volumes/Documents/Expense/ABC.xlsx'".
I went to Setting > General > Sharing > File Sharing to switch set that as "ON" but resulting in the same issue.
I hope someone can advise on what is causing the issue. Thanks in advance.
Regards