Re: Let's have a little fun
Re: Let's have a little fun
- Subject: Re: Let's have a little fun
- From: paul mccabe kampu <email@hidden>
- Date: Wed, 14 Mar 2001 23:46:44 -0500
- Organization: Kalsea Lane
Michelle Steiner wrote:
>
>
Attach this script to a folder on your favorite victim's computer.
>
>
--Michelle
>
I agree! Just a couple of helpful mods, with your permission, of course.
on opening folder thisfolder
tell application "Finder"
set whichwindow to the window of thisfolder
set view of whichwindow to icon --if it's in list view to avoid errors
set windowBounds to the bounds of whichwindow
set NoI to the number of items of whichwindow
repeat with loop from 1 to NoI
set NewLocation to my randomize(windowBounds)
set the position of item loop of whichwindow to the NewLocation
end repeat
set zoomed of whichwindow to true --just a thought.
end tell
end opening folder
on randomize(numberpairs)
set vertical to (random number from item 1 of numberpairs to item 3 of
numberpairs) - (item 1 of numberpairs)
set horizontal to (random number from item 2 of numberpairs to item 4
of numberpairs) - (item 2 of numberpairs)
return {vertical, horizontal}
end randomize
end
Better late then never...
--
Paul
c 416.275.8190
"No, TRY not. do or do not. There is no TRY." --Yoda(on error handling)