• 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: Selecting and positioning desktop icons
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Selecting and positioning desktop icons


  • Subject: Re: Selecting and positioning desktop icons
  • From: John Delacour <email@hidden>
  • Date: Tue, 5 Aug 2003 17:45:28 +0100

At 6:33 am -0700 5/8/03, B2 Fass-Holmes wrote:

tell application "Finder"
activate
set theItem to folder "untitled folder"
set position of theItem to {765, 603}
end tell

I then saved this script, rebooted into Jaguar.6, opened the script in Script Editor 2 beta, compiled the script, and ran it. Script Editor 2 beta returned the following error.

Finder got an error: can't set position of selection.

I am confused by these outcomes. Can someone please explain to me what's going on?

My goal in all this is to create a script that will align my desktop icons horizontally.


If you do this and then drag the item to right end of the dock

tell app "Finder"
activate
reveal (path to "desk")
end

you will have a desktop that you can arrange. You can hide the title bar etc. add a background exactly like the "desktop" by typing command-j, set the size of the window to what you want and script the positions of the icons.

When you want to see it, just click the desktop item in the dock.

JD



.
_______________________________________________
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.

  • Prev by Date: umask for Aqua programs [$HOME/.login [Re: OT: Default Shell in 10.2.6]]
  • Next by Date: Re: compress with resource forks
  • Previous by thread: help with scripting pdf services
  • Next by thread: filemaker open url
  • Index(es):
    • Date
    • Thread