mczachurski / wallpapper

:computer: Console application for creating dynamic wallpapers for macOS Mojave and newer
MIT License
3.32k stars 137 forks source link

I'm not really understanding how to use the JSON file #64

Open yurisilpess opened 2 years ago

yurisilpess commented 2 years ago
Screen Shot 2022-07-12 at 12 22 10

I have this folder and the json file I created using VS Code. I put the code for the appearance-changing wallpaper:

Screen Shot 2022-07-12 at 12 29 16

what should I do now? Whenever I try to use the wallpapper -i command the json file isn't recognized. I need help

mczachurski commented 2 years ago

Hi,

Now you have to execute command: wallpapper -i wallpaper.json.

yurisilpess commented 2 years ago

Thank you for replying. Now I get this error: Reading JSON file: 'file:///Users/YuriSP/wallpaper.json'...Error: Unexpected error occurs: Error Domain=NSCocoaErrorDomain Code=260 "The file “wallpaper.json” couldn’t be opened because there is no such file." UserInfo={NSFilePath=/Users/YuriSP/wallpaper.json, NSUnderlyingError=0x600001d74a20 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}

mczachurski commented 2 years ago

You have to execute that command in folder where the wallpaper.json is, or you have to specify full path to that file.