Re: Getting array of Item names and Positions
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