Questions tagged [desktop-background]

17 questions
6
votes
3 answers

Mac: Getting path of current desktop picture from terminal

I'm writing a bash script that takes care of setting the desktop background on my mac. I can set the desktop background with: $ osascript -e 'tell app "Finder" to set desktop picture to POSIX file "/Library/Desktop Pictures/Solid Colors/Solid…
user4434778
5
votes
2 answers

Getting desktop background on Mac

How do I get the current wallpaper on a Mac? Just point me to an API function so I can Google more. Edit: I think I found it. [NSUserDefaults standardUserDefaults] mentioned at http://lists.apple.com/archives/student-dev/2004/Aug/msg00140.html Also…
Bemmu
  • 17,849
  • 16
  • 76
  • 93
3
votes
1 answer

IOError while writing to file

Im writing a program that changes my desktop background. It does this by reading a text file. If the text file says one of the BG file names it saves that one as my background, and writes the name of the other one to the file and closes it. I can't…
Serial
  • 7,925
  • 13
  • 52
  • 71
2
votes
4 answers

How to discover which image file is the current desktop background on Windows?

It is possible to discover it programatically? It will use the Windows Registry? I'll need to take a screenshot of it and compare with the files on disk? Is it possible to discover even in the desktop slideshow mode?
Jader Dias
  • 88,211
  • 155
  • 421
  • 625
1
vote
1 answer

MacOSX/Cocoa: how to change the desktop content view / how to draw directly on the desktop background?

/System/Library/Frameworks/ScreenSaver.framework/Resources/ScreenSaverEngine.app/Contents/MacOS/ScreenSaverEngine -background changes the desktop background view to the screensaver view. How is that implemented? (How) can I do this myself?
Albert
  • 65,406
  • 61
  • 242
  • 386
1
vote
0 answers

I'm able to change the desktop background with VBScript, but it only updates the parameters after restarting

I've been trying to change my desktop background with VBScript. It works, however it only takes effect once I restart. Is there a way to update the parameters instantly without restarting? I've tried restarting explorer to see if that would update…
1
vote
2 answers

Getting Desktop Background in Cocoa

I'm needing to do something full-screen app, which would usually not be the problem. The problem now is that I need to have the user's desktop, but without icons, as the background of my full screen window, much like Launchpad in 10.7. I've gotten a…
Tristan
  • 3,058
  • 6
  • 40
  • 68
1
vote
0 answers

Setting desktop picture in OS X 10.6

Possible Duplicate: How can I programatically change the background in Mac OS X? Hi, I've whipped together a small (in this case python, but the language is not important) script which gets a jpg from a webpage and sets it as the current…
Chuck
  • 11
  • 2
1
vote
1 answer

How to Show Videos as a Desktop Background (in XP)?

Is it possible to display videos as a desktop background in XP programmatically, preferably using C#? VLC can do it, via its "DirectX > Enable Wallpaper Mode", so it may be possible to do this through the VLC command line interface. Can anyone…
Callum Rogers
  • 15,630
  • 17
  • 67
  • 90
1
vote
1 answer

Alternate desktop background in cmd at set times

I was thinking about causing my desktop background to change using a .bat at set times. (i.e. 6:00 AM to 6:00 PM have a background and then from 6:00 PM to 6:00 AM have a different set background) I thought something along this line would work but…
0
votes
0 answers

Use PowerShell Script to set desktop wallpaper that will allow users to change

Hi I am very new using powershell, I am trying to deploy a desktop wallpaper, which I can but, I would like to know if there's a way where the user can change it, because so far it is not possible. Do I need to modify something on the script or…
0
votes
0 answers

Setting MS desktop background with cytpes module in python is too slow to use like video.

tl;dr The usual way of using python to set the desktop background using ctypes is too slow for animation purposes. I'm wondering if I have any options to set the background at O(5fps) without destroying my computer's performance. ~~~~ Howdy…
0
votes
0 answers

Change the picture position for the desktop background in VB

I have wrote this code to change the desktop background using the function SystemParametersInfo in the Windows API user32.dll : Imports System.IO Public Class Form1 Private Declare Auto Function SystemParametersInfo Lib "user32.dll" (ByVal X As…
Mousa Alfhaily
  • 1,260
  • 3
  • 20
  • 38
0
votes
2 answers

Can't delete directory via AppleScript

I'm writing a program that continuously sets the desktop background to the album art of the current song playing in iTunes, and to do so I am writing the artwork to a file with a random ID number. This means that the desktop will be changing to a…
0
votes
1 answer

How to activate full screen apps in background via Apple Script

I've been working on an application in Automator that changes the desktop background to the album art of the current song playing in iTunes. You can download my first version here. The most annoying issue I have found is that when there is a full…
Ben Close
  • 45
  • 6
1
2