Re: Desktop Picture not persist across reboot
Re: Desktop Picture not persist across reboot
- Subject: Re: Desktop Picture not persist across reboot
- From: dev_sleidy <email@hidden>
- Date: Fri, 25 Aug 2006 12:08:54 -0400
tell application "Finder"
set desktop picture to (some file of (path to desktop pictures folder))
end tell
Your code, or re-written as ...
tell application "Finder" to set desktop picture to (some file of
(path to desktop pictures folder))
... works as expected. Even across reboots - here.
Perhaps, the associate's 'com.apple.desktop.plist' file is corrupted.
Trash the file, run your code, reboot (and / or turn OFF, then turn
ON) the Mac. If the randomly selected file remains as the background
(after the reboot / turn OFF, turn ON) - you confirmed that the
'com.apple.desktop.plist' file was corrupted.
To ensure that a new 'com.apple.desktop.plist' file is created each
time 'tell application ... pictures folder))' is called, you could
proceed your code (or the single line version, shown above) with ...
do shell script "rm -rf $HOME/Preferences/com.apple.desktop.plist"
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden