|
|
10.4: Set desktop picture via Automator
I looked a long time for an automated way to set my desktop image. being a unix geek but not knowing a lot about applescript, and having never used automator, it took a while. here's the shell script I finally came up with.
10.4: Set desktop picture via Automator
I like this script! Easy to work into any unix script workflow. It'd be easy to make it a Contextual Menu with On My Command.
When I tried it, it seemed to need a full path to the image. I updated it to test to see if it's a full path or not, and if it's not, assume that it's in the current directory, and use that to create a full path. I don't do that much shell scripting, so hopefully this isn't too bad. If you don't like the "solid color" effect of a bad image, you could easily add in a few lines to test if the file name at least ends with something like ".jpg" (or another image type), or test it with the unix file command. You could also do that in the AppleScript section as well, whichever is easier.
--- |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.13 seconds |
|