• 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: Weeding out items from list
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Weeding out items from list


  • Subject: Re: Weeding out items from list
  • From: kai <email@hidden>
  • Date: Sun, 27 Nov 2005 18:48:16 +0000


On 27 Nov 2005, at 12:53, Nigel Garvey wrote:

kai wrote on Sat, 26 Nov 2005 23:46:28 +0000:

tell application "Finder" to tell (a reference to (disks whose local
volume is false and name is not "Network")) to set listing to name of
item (((exists) as integer) + 1) of {{name:{}}, it}

Oh really, kai! And people blame _me_ for that sort of code! 8-|

This version also works with systems that predate boolean-to-integer
coercions:

  tell application "Finder" to tell (a reference to (disks whose local
volume is false and name is not "Network")) to set listing to name of
item ((count ((exists) as string)) - 3) of {it, {name:{}}}

Very cute, Mr G. :-)

(And then you seem surprised at your reputation for... oblique code!) ;-)

---
kai


_______________________________________________ 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: Weeding out items from list
      • From: "Gary (Lists)" <email@hidden>
References: 
 >Re: Weeding out items from list (From: "Nigel Garvey" <email@hidden>)

  • Prev by Date: Re: Applescript Script fails with Excel 2004
  • Next by Date: Re: Check For Open Application
  • Previous by thread: Re: Weeding out items from list
  • Next by thread: Re: Weeding out items from list
  • Index(es):
    • Date
    • Thread