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: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