pablordoricaw / mv_dwnlds

Python Automation based on the idea from Kalle Halden's YouTube video to automatically move files downloaded to the Downloads folder to organize them based on the file type.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

πŸ› LaunchAgents directory doesn't exist

pablordoricaw opened this issue Β· comments

Details

Fails if /Users/<user-name>/Library/LaunchAgents/ directory doesn't exist.

Error message

Traceback (most recent call last):
  File "./mv_dwnlds/plist.py", line 81, in <module>
    write_plist(plist_file_path, agent_name, python_env)
  File "./mv_dwnlds/plist.py", line 36, in write_plist
    with open(plist_file_path, "wb") as fp:
FileNotFoundError: [Errno 2] No such file or directory: '/Users/nupxo4/Library/LaunchAgents/local.user.mv_dwnlds.plist'
make: *** [load] Error 1