Set Desktop wallpaper on Mac OSX

BlitzMax Forums/BlitzMax Programming/Set Desktop wallpaper on Mac OSX

Grey Alien(Posted 2007) [#1]
Hiya, does anyone have any handy code to do this? I googled these forums but found nothing. I posted this before but think it was lost in the recent server change over.

Thanks!


TMK(Posted 2007) [#2]
I don't really know how to do this, I haven't coded much in Cocoa/Carbon before on Mac but I found this:

http://developer.apple.com/samplecode/DeskPictAppDockMenu/listing3.html

There also seems to be system variable located at com.apple.Automator.SetDesktopPicture one might have access to. No idea how though :)

Perhaps someone else knows more about this and could elaborate? :)


Grey Alien(Posted 2007) [#3]
Interesting, it's a start thanks. Seems like that code was from 2002 and there is a proper API call since then.


Winni(Posted 2007) [#4]
Can't you create a little script with Automator and launch that from your app?


Grey Alien(Posted 2007) [#5]
I've never made a script automater before (but I'm sure I could learn how). That may work but it's not as nice and simple as just calling some code :-) (Although writing the code probably isn't simple)