image
image

Go Back   macosx.com > Mac Help Forums > Mac OS X System & Mac Software

Reply
 
Thread Tools
  #1  
Old January 19th, 2001, 03:02 PM
Registered User
 
Join Date: Jan 2001
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
garlic_b is on a distinguished road
Smile

So is there a command for the command line that sets the desktop background?

And if so has anyone tried to dump the output from XEarth to it.

Or in a script like so. The bottom command line is what I am curious about. Is there something like that?

#!/usr/bin/tcsh
xearth -proj orthographic -pos sunrel,0,0 -size 1048,768 -shift 0,0 -shade -day 100 -night 0 -ncolors 256 -stars -starfreq .002 -gif > temp_background.gif

defaults write com.apple.Desktop Background temp_background.gif
Reply With Quote
  #2  
Old January 21st, 2001, 01:51 AM
strobe's Avatar
Puny Member
 
Join Date: Dec 2000
Posts: 795
Thanks: 0
Thanked 0 Times in 0 Posts
strobe is on a distinguished road
That sounds ass-slow.

Doesn't Neko replace the desktop image with animated cats? You might try contacting that author.
__________________
---
>80 column hard wrapped e-mail is not a sign of intelligent
>life
Reply With Quote
  #3  
Old January 21st, 2001, 03:47 AM
Registered User
 
Join Date: Jan 2001
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
garlic_b is on a distinguished road
Of course it's ass slow. It doesn't need to be a continuous update. You have 1440 minutes per day. The earth rotates 360 degrees per day. That means that if you want it to refresh for each degree, you would only need to have the script execute every 4 minutes. Maybe at some point someone can do a more efficient version.

-g
Reply With Quote
  #4  
Old January 21st, 2001, 04:21 AM
Registered User
 
Join Date: Nov 2000
Posts: 169
Thanks: 0
Thanked 0 Times in 0 Posts
zpincus is on a distinguished road
This brings up a lot of interesting things.

<TT>
[axlotl:~] zpincus% defaults read com.apple.finder DesktopViewOptions
{
ArrangeBy = grid;
BackgroundFlags = 0;
BackgroundPictureURL = "file://localhost/omega/pictures+movies/Desktops/fezpower_1024.jpg";
BackgroundType = PctB;
IconSize = 64;
}
</TT>
So here's where the path to the view options is stored. I have yet to figure out how to make defaults read/write able to pull out an item nested within the heirarchy.

But, there are other ways to edit plists. Using Apple's tools, I changed the "URL" to point to a web image. Nothing. I then force quit desktop.app, but when it reappeared, the old image came back (from where did it get the path?)
Next, I tried pointing the URL at a different file in the same folder. After restarting desktop.app, the ugly blue desktop pattern came up, and a message popped up saying "some minor problems have been fixed..."
Next, I tried swapping in a new (identically-sized) file for the old one, and then killing desktop.app. Again, the original blue picture came up with the message about minor problems.

So, desktop.app clearly caches a link or something to the file and knows when you've monkeyed with it. Also, I can't make Desktop.app try to re-read the image file except when it is starting up.

So, it sounds like you need to figure out if apple included an API for changing the desktop pattern and/or forcing the desktop to update its image.

Zach
Reply With Quote
  #5  
Old January 23rd, 2001, 08:35 AM
Registered User
 
Join Date: Jan 2001
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
garlic_b is on a distinguished road
Question

I guess another option would be to determine whether the Control panel for setting the desktop background is apple scriptable, and if so perhaps we could do it that way.

-GB
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Palm Desktop 4.0 question Captain Code Mac OS X System & Mac Software 2 January 14th, 2003 11:20 AM
Does iSync requires Palm Desktop, or HotSync Manager in the Palm Desktop? mikejuni Mac OS X System & Mac Software 5 January 3rd, 2003 06:16 PM
desktop backgrounds vs. performance hazmat Mac OS X System & Mac Software 5 January 7th, 2002 01:42 PM
[HOWTO] - Use ONE desktop folder between OSX and classic swizcore HOWTO & FAQs 2 December 11th, 2001 07:58 AM
Trash icon on2 the desktop.. CiPhEr Mac OS X System & Mac Software 1 October 11th, 2001 08:46 AM


All times are GMT -5. The time now is 06:01 PM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.