Aligning files on the desktop
Aligning files on the desktop
- Subject: Aligning files on the desktop
- From: email@hidden (Michael Slomski)
- Date: Thu, 13 Feb 2003 16:01:48 +0100
Hello listmembers,
Can anyone tell me why the following script don't will work under OS X for
items on the desktop, but work for selected items in a window (windo must be
in symbol view). With OS 9 it will work for desktopicons as well as for
icons in windows.:
The script will align all icons up to one line (ok, it's random, which one
will be the first item in the list, but after running the script, all have
the same y value and I can move them all to the desired y-position)
best regards
Michael
property itemlist : {}
property myCount : 0
property myy : 0
tell application "Finder"
set itemlist to selection
set myCount to count of itemlist
set myPosition to position of first item of itemlist
set myy to second item of myPosition
repeat with i from 2 to myCount
set aItem to item i of itemlist
set aPosition to position of aItem
set second item of aPosition to myy
set position of aItem to aPosition
end repeat
end tell
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.