DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

Set Background Image On Mac With Osascript

06.17.2010
| 3618 views |
  • submit to reddit
        run it like this:  osascript bg.osa /tmp/some.jpg
on run argv
        tell application "Finder"
                set desktop picture to (item 1 of argv) as POSIX file
        end tell
end run