Sure there are. But as with OSX the user is able to decide not to place any mounted volume on the desktop (prefering to keep them in the Finder’s sidebar) your script might end up with a lot of errors trying to access and move around these disks…
Sorry Zoz, I think I didn’t understand your question correctly.
You are right, the desktop of OSX is quite different from the OS9 desktop - first of all because every user has its own.
If you just want to select the mounted disks you can use something like this:
tell app "Finder"
set desktopItems to every item of desktop
repeat with i from 1 thru count of desktopItems
if kind of item i of desktopItems is "volume" then
select item i of desktopItems
end if
end repeat
end tell
But if you want to change their position on the desktop unfortunatedly this is not easy as it was under OS9. You can change by script the view options for the folder desktop, change the sort order and so on, but I don’t know any trick to move the icon of the startup disk 50 pixels to the left…
May be someone else got an idea?
I tried your script. While it does select disks, it doesn’t select these enterties on the Desktop. (It selects them at the ‘computer level’ instead)
Actually I am not sure what these things are
(The Disks that appear on the Users Desktop in the OSX Finder that is)
since those enterties are not Disks, but more like a short cut to the actual disks.
(except that they are not aliases, or links, they don’t appear in ~/Desktop in Terminal for instance. Using Terminal they appear under /Volumes)
The Finder sems to be “pulling a trick” by making them appear on the users Desktop
which is why I am having a problem addressing that thing that represents them.
http://maccentral.macworld.com/features/applescriptprimer03/
This should more than satisfy this post, which is to say, X is TOTALLY DIFFERENT THAN 9 when it comes to icon positioning on the desktop. You can no longer directly set the position.
SC