Re: 8.6-9.0.4?
Re: 8.6-9.0.4?
- Subject: Re: 8.6-9.0.4?
- From: Chris Nebel <email@hidden>
- Date: Thu, 23 Nov 2000 00:03:22 -0800
- Organization: Apple Computer, Inc.
"Mr. Weasel Willits" wrote:
>
What is so different about AppleScript between 8.6 and 9? I have a script
>
that doesn't work under OS 9, but works great under OS 8
>
>
ignoring application responses
>
tell application "Finder" to set the position of file fn to {fpx,fpy}
>
end ignoring
You're probably getting caught by the Finder gridding bug. The Finder in
Mac OS 9 won't let you set the position of icons in a window that's set to
any arrangement other than none, including snap to grid. Try not ignoring
responses -- if you get an error about "window is the wrong kind to use this
command," then that's the problem.
The workaround is either to turn off gridding, or, strangely enough, to set
the *bounds* of the item instead of the position. Setting the position
should work for both gridded and non-gridded windows in the next Mac OS
release.
--Chris Nebel
AppleScript Engineering
References: | |
| >8.6-9.0.4? (From: "Mr. Weasel Willits" <email@hidden>) |