• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: arrange icons on desktop
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: arrange icons on desktop
      • From: kai <email@hidden>
References: 
 >arrange icons on desktop (From: Rhon Fitzwater <email@hidden>)

  • Prev by Date: Re: Set Contents not working
  • Next by Date: Re: Get default icon of document/application/folder programmatically
  • Previous by thread: arrange icons on desktop
  • Next by thread: Re: arrange icons on desktop
  • Index(es):
    • Date
    • Thread