Re: arrange icons on desktop
Re: arrange icons on desktop
- Subject: Re: arrange icons on desktop
- From: Dave Lyons <email@hidden>
- Date: Mon, 14 Nov 2005 18:44:10 -0800
On Nov 14, 2005, at 1:29 PM, Rhon Fitzwater wrote:
I need a script to arrange the icons on my desktop.
tell application "Finder"
set arrangement of icon view options of window of alias myDesktop
to arranged by kind
end tell
This method is not working for me. I am getting the following
error: "Finder got an error "Can't make some data into the
expected type. (-1700)"
There must be a couple of things going on here:
(1) I don't know why you're getting the -1700 error. Try breaking
down your line into smaller parts. Does "alias myDesktop" work OK by
itself? How about "window of alias myDesktop" and "icon view options
of window of alias myDesktop"?
(2) ...but, it's not going to do what you want. You'll be able to
set the arrangement used when your Desktop folder is displayed inside
of a window in Icon view, but not the arrangement used on the actual
desktop.
Since Finder scripting isn't up to this task, you'd have to resort to
GUI Scripting <http://www.apple.com/applescript/uiscripting/
index.html>, and have your script select the desktop, choose View >
Show View Options, check the "Keep arranged by" checkbox, and so on.
Cheers,
--Dave
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden