Re: Help with moving the trash
Re: Help with moving the trash
- Subject: Re: Help with moving the trash
- From: Christopher Nebel <email@hidden>
- Date: Sat, 2 Feb 2002 20:16:12 -0800
On Thursday, January 31, 2002, at 01:49 PM, Andrew W. Johnson wrote:
tell application "Finder"
activate
select trash
set position of selection to {1216, 924}
end tell
When I run it, it gives me an error:
Finder got an error: This window is the wrong kind (e.g. pop-up vs.
normal)
to use this command.
The Finder will give you this very misleading message if you try to set
the position of an icon in a window (or meta-window, like the desktop)
that's been set to be always arranged by name (or date, or whatever.)
It used to also give you the error if you merely had "always snap to
grid" turned on, but that was fixed [1] in Mac OS 9.1.
--Chris Nebel
AppleScript Engineering
[1] Well, it worked for me, and other people seem to have borne that
out. If you're seeing this error on a merely gridded window, however,
then it may not be as fixed as I thought it was, and you should let me
know.