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 13:31:42 +0200
On Sunday, July 1, 2001, at 01:13 PM, Mark Orchard ((BigPond Cable))
wrote:
Hi,
Apologies if this question has been asked before or if I'm missing
something
obvious.
I'm beginning to explore the world of Cocoa using Java and I'd like to
find
a way to change the Desktop background picture in MacOS X.
I didn't see anything in the AppKit or Foundation docs that could help.
Is
this a Unix or lower-level System thing?
Any help or pointer to the right direction or list would be greatly
appreciated.
Uhm, actually it is a Finder thing...Finder is responsible for the
desktop and it does what it sees fits with the background...Finder
stores its preferences for the desktop in this structure in its .plist
preferences file:
DesktopViewOptions = {
ArrangeBy = grid;
BackgroundFlags = 0;
BackgroundPictureURL =
"file://localhost/Users/chmod007/Pictures/Familjebilder/Digitalkamera Tacha/
MVC-020S.JPG";
BackgroundType = PctB;
IconSize = 32;
};
But I dont think that that is anything you should go in and modify since
the format may change in the future...A change would also require a
restart of finder...I doubt it, but maybe finder supports changing the
background using applescript...
/ david