Please help me figure this error out. I’m trying to make a script to reset my desktop icons. Whenever I run the script it gets to the first item to be moved and says “Finder error: Window wrong kind (e.g. pop-up vs. normal) to use command.” I can’t figure this one out. Help!
: Please help me figure this error out. I’m trying to make
: a script to reset my desktop icons. Whenever I run the
: script it gets to the first item to be moved and says
: “Finder error: Window wrong kind (e.g. pop-up vs.
: normal) to use command.” I can’t figure this one
: out. Help!
You’re probably using Masc OS 9. There’s a work-round posted on the FAQ page for alt.comp.lang.applescript at:
http://users.erols.com/dlivesay/aclafaq.html
NG
: You’re probably using Masc OS 9. There’s a work-round
: posted on the FAQ page for alt.comp.lang.applescript
: at: http://users.erols.com/dlivesay/aclafaq.html
: NG
No message.
My script was simply:
tell application "Finder"
set position of startup disk to {760, 28}
set position of file "Documents" to {760, 91}
set position of file "Web" to {760, 154}
set position of file "E-Mail" to {760, 217}
set position of file "SoundJam MP" to {760, 280}
set position of file "2000 Tourney" to {760, 343}
set position of trash to {760, 532}
end tell
The original response posted to my message gave a link to just the FAQ page I needed to solve the problem, which occurs because I am running OS 9. It is: http://users.erols.com/dlivesay/aclafaq.html
Now the script is:
tell application "Finder"
set svaPreference to spatial view arrangement of the desktop
set spatial view arrangement of the desktop to not arranged
set position of startup disk to {760, 28}
set position of file "Documents" to {760, 91}
set position of file "Web" to {760, 154}
set position of file "E-Mail" to {760, 217}
set position of file "SoundJam MP" to {760, 280}
set position of file "2000 Tourney" to {760, 343}
set position of trash to {760, 532}
set spatial view arrangement of the desktop to svaPreference
end tell
Hope this helps.
Can we see the script?