Re: Problem getting position of desktop items
Re: Problem getting position of desktop items
- Subject: Re: Problem getting position of desktop items
- From: cheshirekat <email@hidden>
- Date: Wed, 21 Jul 2004 17:23:57 -0600
On Wed, Jul 21, 200412:51 PM, the following words from John Stewart
email@hidden, emerged from a plethora of SPAM ...
>
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
I already have AppleScripts to create my download folders for each month.
What I don't know is a shell script, or otherwise to tell System
Preferences to stop using the old download folder and begin using the one
already created for the new month. Do you know how to change these
download folder setting in System Preferences or Safari using a script I
can place in login items?
I once had a folder action to put any newly added stuff in a date-named
folder. It took me forever to get around to creating this script for OS
X. But I only used it for a few months before deciding that I spent a lot
of time digging around because I could never remember which date of the
month I downloaded such-and-such. So, now I just run a script in January
that creates just the monthly folders for the entire year.
Hmmm. I wonder if I should modify my script to add the icon I've been
using on my download folders before January gets here.
--
Now the rich stream of Music winds along
Deep, majestic, smooth, and strong,
- Thomas Gray (1716-1771), British poet.
* 867 PowerBook G4 * OS X 10.2.8 * 768 MB Ram *
* Addictions: iTunes * AppleScript * Mike's Cards * FileMaker Pro *
_______________________________________________
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.