• 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: Getting array of Item names and Positions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting array of Item names and Positions


  • Subject: Re: Getting array of Item names and Positions
  • From: "John C. Welch" <email@hidden>
  • Date: Mon, 28 Jan 2008 09:27:32 -0600
  • Thread-topic: Getting array of Item names and Positions

On 01/28/2008 09:09 AM, "Skeeve" <email@hidden> wrote:

> This is too slow?
>
> tell application "Finder"
>     set np to {}
>     repeat with r in desktop
>         copy {name, position} of r to the end of np
>     end repeat
>     np
> end tell

Make that "copy {name,desktop position} of r to the end of np" and it will
work better. "position" may, as it does for me, give you a lot of items at
-1,-1, whereas "desktop position" gives you better numbers.

--
His primary achievement has been in confusing the public mind, as between
the internal and the external threats of Communism. We must not confuse
dissent with disloyalty. We must remember always that accusation is not
proof and that conviction depends upon evidence and due process of law. We
will not walk in fear, one of another. We will not be driven by fear into an
age of unreason, if we dig deep in our history and our doctrine, and
remember that we are not descended from fearful men.


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Getting array of Item names and Positions
      • From: Skeeve <email@hidden>
References: 
 >Re: Getting array of Item names and Positions (From: Skeeve <email@hidden>)

  • Prev by Date: Re: Getting array of Item names and Positions
  • Next by Date: Re: Getting array of Item names and Positions
  • Previous by thread: Re: Getting array of Item names and Positions
  • Next by thread: Re: Getting array of Item names and Positions
  • Index(es):
    • Date
    • Thread