Comments (12)
Ok, all done. Give this a try on your machine and let me know how it works. You should be able to unzip, double click and let it go. It's only zipped because GitHub doesn't allow .command files.
Plist Generator.zip
from dynamic_walls.
So, I renamed your script to wallpaper.plist edited the username inside and placed it in /Library/LaunchDaemons/ changed the owner to root and restarted. After entering: "launchctl load /Library/LaunchDaemons/wallpaper.plist" it finally worked.
from dynamic_walls.
Yes, I should've been more specific with my instructions. What you did is correct, you can also use launchctl unload ... to disable it.
from dynamic_walls.
The only problem is that the wallpaper files a from my user account and when I place your plist inside /Library/LaunchDaeomons/ it won't work, but if I place them inside/User/Username/Library/LaunchAgents your script works just fine.
from dynamic_walls.
@john2691 my main purpose was to create the main script and suggested a cron job as it was simple to set up even for someone a little new to all of this, I did suggest using a plist and launchd just above the P.S for those who know what they are doing, launchd is definitely the better option and replaces cron, just thought using cron would be easier but we could move to a plist that is better, I'm not too familiar with those I did try it out earlier when I was building it, is there a way to set a universal plist so the user doesn't have to specify the absolute path?
I would like to use the plist method too
from dynamic_walls.
@Dniel97, that's certainly strange, it runs on my machine without issue. I'll have to look into it. @kush-agra so long as they're putting the files in the /Pictures/Wallpapers folder, I think ~/Pictures/Wallpapers should suffice in the .plist file. I can experiment with it.
from dynamic_walls.
@john2691 It works just fine in /Users/USERNAME/Library/LaunchAgents, but I don't know why it isn't working in /Library/LaunchDaemons/
from dynamic_walls.
oh nice, surely let me know @john2691 after experimenting and I'll set it up for a plist instead that'd be great
from dynamic_walls.
@kush-agra It looks as though the absolute path is required, since it's an AppleScript and not a shell script. Shell scripts are able to be called in a plist using the ./ method, but not AppleScripts. I'll try to think of an elegant way to make that easy for users, but so long as cron isn't causing issues it's not that important.
from dynamic_walls.
exactly my thought process, we could use a shell script to call the AppleScript?
from dynamic_walls.
That's one solution, I'm actually writing a script right now that will get the current username, create a proper .plist file and put it in the correct folder. Either way should be pretty user friendly.
from dynamic_walls.
Seems to be working great and is easier, I'll add it to master :)
from dynamic_walls.
Related Issues (12)
- To-do : Use noon time instead of custom logic
- Set wallpaper on multiple virtual desktops/spaces HOT 3
- Better matching the sun?
- Image order and timing issues HOT 6
- Minor JSON issue - doesn't affect performance HOT 2
- LaunchAgent command mistakes HOT 3
- Fade wallpapers when switching images HOT 2
- How to stop the script before switching to the app version? HOT 2
- Can't delete script. HOT 1
- I Have no idea what I'm doing and wondering if this will mess up my Mac HOT 2
- Not displaying correct wallpaper on first of the month
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dynamic_walls.