Re: [HELP] How to change Desktop background pic in OSX from Cocoa-Java?
Re: [HELP] How to change Desktop background pic in OSX from Cocoa-Java?
- Subject: Re: [HELP] How to change Desktop background pic in OSX from Cocoa-Java?
- From: David Remahl <email@hidden>
- Date: Sun, 1 Jul 2001 14:27:21 +0200
Further searching on the web revealed that a "Defaults Write.." could be
executed from the command-line altering the Finder's DesktopViewOptions
(as
you've shown below). This achieves the end-result but may well break in
the
future. I was hoping to be able to do this from within a higher-level
Framework (AppKit, Foundation). Remotely "Apple-Scripting" the Finder
may be
a cleaner solution but I don't know of any way to do this from
Java-Cocoa
and I don't know of a way to "view" the Finder's (or any app's)
AppleScript
dictionary.
As I said, this is rather a *higher* level issue than AppKit...Finder is
an application and it does what it likes...You may want to file this as
a bug...
/ david
PS. Cocoa-Java has functions for applescript. Use scripteditor to check
if finder is scriptable when it comes to changing the background.