Hello,
AppleScriptObjC app in Xcode…
I will change the image of the Login window.
This image is named lockscreen.png located in the /Library/Caches/Desktop Pictures/UUID_User (for example DA6D67A6-8E07-43D3-90E1-CE558271D864) folder.
For the actual user, no problem.
set adminShortName to short user name of (system info)
set uuiduser to do shell script "dscl . -read /Users/" & adminShortName & " GeneratedUID | awk '{print $2}'"
set newImageLogin to choose file default location ((path to desktop pictures folder from system domain) as alias)
set newImageLogin to (POSIX path of newImageLogin)
set newImagePath to "/Library/Caches/'Desktop Pictures'/" & uuiduser & "/lockscreen.png"
do shell script "rm -rf /Library/Caches/'Desktop Pictures'/" & uuiduser & "/lockscreen.png" with administrator privileges
do shell script "cp " & quoted form of newImageLogin & space & newImagePath
With many users, I don’t know how make that for all users.
I can see the folder names of each user…
set listlockscreen to list folder (text 1 thru -2 of boot volume of (system info)) & ":Library:Caches:Desktop Pictures:"
… but after…?