Re: How to move icons on desktop
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