• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Help with moving the trash
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Prev by Date: Re: applescript-users digest, Vol 3 #102 - 14 msgs
  • Next by Date: Re: Help with moving the trash
  • Previous by thread: Re: applescript-users digest, Vol 3 #102 - 14 msgs
  • Next by thread: Re: Help with moving the trash
  • Index(es):
    • Date
    • Thread