• 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:20:55 -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

Also, this script can be done in one line: "set position of trash to {1216, 924}". (Well, technically three -- you still need the "tell" and "end tell" lines.) One of the disadvantages of recording scripts is that you tend to get a recording of what you did, not what you meant. The "activate" forces the Finder to the front, which isn't really necessary, and the Finder can set properties of items (like the position of the trash) without selecting them.


--Chris Nebel
AppleScript Engineering


  • Prev by Date: Re: Help with moving the trash
  • Next by Date: comparing two identical strings
  • Previous by thread: Re: Help with moving the trash
  • Next by thread: comparing two identical strings
  • Index(es):
    • Date
    • Thread