• 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: is there any way of speeding this up, please?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: is there any way of speeding this up, please?


  • Subject: Re: is there any way of speeding this up, please?
  • From: Axel Luttgens <email@hidden>
  • Date: Sun, 26 Feb 2012 17:39:02 +0100

Le 26 févr. 2012 à 12:06, Brian Christmas a écrit :

> G'day Alex
>
> This is just a script I'm updating for Lion that was published on MacScripters for System 4.x & 5.x, and got quite a few downloads (freebie).
>
> It automatically aligns selected icons, and can pack them in much tighter than the Finder if so desired. I mainly use it to keep my desktop icons neat and tidy. There were a lot of hassles with it in 10.6.x, so I never released that version.
>
> The reason I'm using 'selection as alias list' is because it's faster than just 'selection'.

Right... forgot about that behavior.
In your case, the selection is used to convey the full list of items the user has chosen to act upon, and this may indeed quickly become a rather long list.


> The script is very slow on reselecting large selections, unless the following line is commented out…
>
> select my KeepSelection.

Trying here with about 750 items, this one looks to be very quick:

	tell application "Finder"
		set x to selection as alias list
		select {}
		set selection to x
	end tell

HTH,
Axel




 _______________________________________________
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


References: 
 >is there any way of speeding this up, please? (From: Brian Christmas <email@hidden>)
 >Re: is there any way of speeding this up, please? (From: Axel Luttgens <email@hidden>)

  • Prev by Date: Re: is there any way of speeding this up, please?
  • Next by Date: Re: is there any way of speeding this up, please?
  • Previous by thread: Re: is there any way of speeding this up, please?
  • Next by thread: Re: is there any way of speeding this up, please?
  • Index(es):
    • Date
    • Thread