Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > GUI Customization > User Picture change script?

User Picture change script?
Thread Tools
Professional Poster
Join Date: Jan 2001
Location: Between Sydney and Melbourne
Status: Offline
Reply With Quote
Jun 5, 2003, 07:18 PM
 
Does anyone know how to change the user (login) picture (automaticaly).

When you select your picture it seems to copy it somwhere, so modifying the original does not change the actual one on the login panel.

I want to be able to run an Applescript or Terminal script to change my user icon.

Is this possible???

$10 for the genius.
     
Mac Enthusiast
Join Date: Oct 2001
Status: Offline
Reply With Quote
Jun 5, 2003, 07:46 PM
 
It's not copied... The location is held in NetInfo.

man niutil
     
Professional Poster
Join Date: Jan 2001
Location: Between Sydney and Melbourne
Status: Offline
Reply With Quote
Jun 5, 2003, 08:05 PM
 
Originally posted by mrbiiggy2:
It's not copied... The location is held in NetInfo.

man niutil
Ahh!

is it possible to modify this using a script?
     
Professional Poster
Join Date: Jan 2001
Location: Between Sydney and Melbourne
Status: Offline
Reply With Quote
Jun 5, 2003, 08:06 PM
 
Originally posted by mrbiiggy2:
It's not copied... The location is held in NetInfo.

man niutil
Actualy, im sure it is copied, when I modify the actualy file which netinfo should be pointing to the login icon stays the same.

Any ideas?
     
Mac Enthusiast
Join Date: Oct 2001
Status: Offline
Reply With Quote
Jun 5, 2003, 08:32 PM
 
Code:
niutil -createprop . /users/*USER* picture "/Library/User Pictures/Animals/Jaguar.tif"
GL
     
Mac Elite
Join Date: Nov 2002
Status: Offline
Reply With Quote
Jun 5, 2003, 09:07 PM
 
/users/*USER* picture "/Library/User Pictures/Animals/Jaguar.tif
Well isn't it easy enough to just go to that location?
click one
     
Mac Elite
Join Date: Apr 2003
Location: SoCal
Status: Offline
Reply With Quote
Jun 5, 2003, 09:47 PM
 
Originally posted by NetworkShadow:
/users/*USER* picture "/Library/User Pictures/Animals/Jaguar.tif
Well isn't it easy enough to just go to that location?
But the issue is that NetInfo (or whatever) doesn't "remember" that location as being the user's picture... for example, I make my own custom login pictures, and everytime I change them, I have to go through System Preferences and change it... not the end of the world, but still a nuisance.
     
Professional Poster
Join Date: Jan 2001
Location: Between Sydney and Melbourne
Status: Offline
Reply With Quote
Jun 5, 2003, 11:16 PM
 
Originally posted by mrbiiggy2:
Code:
niutil -createprop . /users/*USER* picture "/Library/User Pictures/Animals/Jaguar.tif"
GL

So if I typed that exactly as you did in the terminal, my user pic would change to the Jaguar.tif?
     
Mac Enthusiast
Join Date: Oct 2001
Status: Offline
Reply With Quote
Jun 5, 2003, 11:42 PM
 
Originally posted by NetworkShadow:
/users/*USER* picture "/Library/User Pictures/Animals/Jaguar.tif
Well isn't it easy enough to just go to that location?
That would be replacing Mac OS X system files.
     
Mac Enthusiast
Join Date: Oct 2001
Status: Offline
Reply With Quote
Jun 5, 2003, 11:45 PM
 
Originally posted by moonmonkey:
So if I typed that exactly as you did in the terminal, my user pic would change to the Jaguar.tif?
You need to replace *USER* with your username.
     
Forum Regular
Join Date: Aug 1999
Location: Los Angeles, CA
Status: Offline
Reply With Quote
Jun 5, 2003, 11:47 PM
 
I'd actually like a script to take a screenshot then crop it and make it my user/ichat picture.

It'd be like a little window on my desktop in ichat.

Don
     
Professional Poster
Join Date: Jan 2001
Location: Between Sydney and Melbourne
Status: Offline
Reply With Quote
Jun 6, 2003, 01:24 AM
 
Originally posted by mrbiiggy2:
You need to replace *USER* with your username.
Is there a variable which I can stick in there to denote the current user?

Insead of having to change the script for every user?
     
Professional Poster
Join Date: Jan 2001
Location: Between Sydney and Melbourne
Status: Offline
Reply With Quote
Jun 6, 2003, 04:39 AM
 
Originally posted by mrbiiggy2:
Code:
niutil -createprop . /users/*USER* picture "/Library/User Pictures/Animals/Jaguar.tif"
GL

Dont kill me but how do I get this to be compatible with the Do Shell script command.

So I can trigger it from an applescript?
     
   
Thread Tools
Forum Links
Forum 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 On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 10:16 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2