Giter VIP home page Giter VIP logo

Comments (12)

anon1y4012 avatar anon1y4012 commented on July 17, 2024 1

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.

Dniel97 avatar Dniel97 commented on July 17, 2024

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.

anon1y4012 avatar anon1y4012 commented on July 17, 2024

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.

Dniel97 avatar Dniel97 commented on July 17, 2024

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.

kush-agra avatar kush-agra commented on July 17, 2024

@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.

anon1y4012 avatar anon1y4012 commented on July 17, 2024

@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.

Dniel97 avatar Dniel97 commented on July 17, 2024

@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.

kush-agra avatar kush-agra commented on July 17, 2024

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.

anon1y4012 avatar anon1y4012 commented on July 17, 2024

@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.

kush-agra avatar kush-agra commented on July 17, 2024

exactly my thought process, we could use a shell script to call the AppleScript?

from dynamic_walls.

anon1y4012 avatar anon1y4012 commented on July 17, 2024

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.

kush-agra avatar kush-agra commented on July 17, 2024

Seems to be working great and is easier, I'll add it to master :)

from dynamic_walls.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.