• 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: 8.6-9.0.4?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Speeding Up Script
  • Next by Date: Re: Speeding Up Script
  • Previous by thread: Re: Speeding Up Script
  • Next by thread: Differences between Applescript in 8 and 9?
  • Index(es):
    • Date
    • Thread