Re: Problem getting position of desktop items
Re: Problem getting position of desktop items
- Subject: Re: Problem getting position of desktop items
- From: John Stewart <email@hidden>
- Date: Wed, 21 Jul 2004 12:51:54 -0400
On 7/21/04 at 1:46, the entity cheshirekat spoke thusly
>
I also miss being able to clean up my desktop. I've become addicted to my
>
desktop pictures, so it's a bummer having no AS way to quickly clear my
>
view. However, I don't usually put stuff on my desktop, it's usually
>
stupid installers wanting to put an alias there or mounted volumes that
>
get in my way. For internet downloads, I use an AppleScript that creates
>
my download folders, but I wish I could automate the System Preference
>
and Safari settings when I change folders at the beginning of each month.
Why can't you? All you really need for timing is a login items script that checks for a change of month. Then a bit of code to change the preferences. Here's a start on it. I'd add the rest but I'm at work and haven't the time available to figure out the shell scripts.
property mnth : missing value
set x to current date
set y to month of x
if x is equal to y then error number -128
set mnth to y
-- set the preferences here
As for clearing the desktop, I use 10.3.4 so I have Finder labels available. I have a folder on the desktop into which I periodically move all unlabeled items. Not the same as positioning icons but at least I can see the background picture :)
set p to path to "desk" as Unicode text
tell application "Finder"
move (every item of alias p whose label index is 0) to alias (p & "Desktop Dump:")
update desktop
end tell
JBS
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.