• 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: How to move icons on desktop
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to move icons on desktop


  • Subject: Re: How to move icons on desktop
  • From: Jason Bourque <email@hidden>
  • Date: Fri, 29 Dec 2000 22:14:15 -0500

> To all
>
> I had a script that moved a disk icon to a specific position on the
> desktop which stopped working in MacOS 9. I recorded a script to see
> what was going on and, when it is run, it fails.
>
> The script code is:
>
> tell application "Finder"
> activate
> get window {1230, 493}
> select disk "RAM Disk"
> set position of selection to {1219, 91}
> end tell
>
> The error I get is:
> Finder got an error: Can't get window {1230, 493}
>
> If I remove the get window statement, it still fails with:
> Finder got an error: This window is the wrong kind (e.g. pop-up vs.
> normal) to use this command.
>
> Any ideas on how to make this work again. Thanks.
>
> Stephen Lanza

you could just use

tell application "Finder"
set position of disk "RAM Disk" to {1230, 493}
end tell

and skip the rest

Jason Bourque


  • Follow-Ups:
    • Re: How to move icons on desktop
      • From: Chris Nebel <email@hidden>
  • Prev by Date: Nested list multi - set
  • Next by Date: Re: Nested list multi - set
  • Previous by thread: Re: Nested list multi - set
  • Next by thread: Re: How to move icons on desktop
  • Index(es):
    • Date
    • Thread