Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'Change the login window background picture - revisited' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Change the login window background picture - revisited
Authored by: stormen on Jun 14, '07 08:43:17PM
I have been looking for something like this for a while and it runs great.
The only problem I ran into is that I was not getting my background to show up from my /Users/"myusername"/Pictures folder. This is a simple fix.
Go to the "Get Info" and change the permissions for "Group" and "Others" to read only.
And there displaying my selected image without changing the Aqua Blue.jpg image.

I also wrote this AppleScript to make the process quicker.... only have it selecting images from you /Users/"Your user name"/Pictures folder

--Created by Stormen
--Email address:
--Created Date: June 14, 2007
--Modified Date:
--License: Freeware
-- Get current loged in user
tell application "System Events" to set c_user to name of current user
-- set the image path
set image_path to "Users:" & c_user & ":Pictures"
-- List all the images
tell application "System Events" to set pic to the name of every file in folder image_path
-- user gets to choose the image he/she wants
set chosen_pic to (choose from list pic)
-- if the user presses cancle exit the script
if chosen_pic is not false then
	-- set the whole user path with pic at the end
	set ThePic to "/Users/" & c_user & "/Pictures/" & chosen_pic
	-- set the shell script for the user
	set runme_s to "sudo defaults write /Library/Preferences/ \\DesktopPicture '" & ThePic & "'"
	-- user must enter the root password for the shell
	set inpwd to display dialog "Enter Root password " default answer "" with hidden answer
	-- if the user presses cancle exit the script
	if inpwd is not false then
		-- set the user password
		set pwd to text returned of inpwd
		-- run the shell command
		do shell script runme_s password pwd with administrator privileges
	end if
end if

I have this script running..... it is a little less painless than copy a file and changing 2 file names.


[ Reply to This | # ]