• 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: apply the same property to a number of items
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: apply the same property to a number of items


  • Subject: Re: apply the same property to a number of items
  • From: Jean-Christophe Helary <email@hidden>
  • Date: Wed, 23 Feb 2011 00:04:40 +0900

Ok, I had memories of what "apply" does in Common Lisp and since Wikipedia has an article on that I thought I'd share:

http://en.wikipedia.org/wiki/Apply

So, an Applescript-like syntax would be:

apply (set label index of item to 6) to {folder1, folder2, ...}

Is something approaching that structure possible ? Or do I have to use a loop ?

Jean-Christophe Helary

>> I'd like to apply the "label index" property to n folders without using a
>> loop.
>>
>> I was thinking of something like:
>>
>> set label index of all items of {..., ..., ...} to 6
>>
>> but it does not seem to work... It there an elegant way to do that ?
>>
>>
>>
>> Jean-Christophe Helary
>> ----------------------------------------
>> fun: http://mac4translators.blogspot.com
>> work: http://www.doublet.jp (ja/en > fr)
>> tweets: http://twitter.com/brandelune
 _______________________________________________
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: 
 >Re: apply the same property to a number of items (From: Jan Bultereys <email@hidden>)

  • Prev by Date: Re: apply the same property to a number of items
  • Next by Date: Re: apply the same property to a number of items
  • Previous by thread: Re: apply the same property to a number of items
  • Next by thread: Re: apply the same property to a number of items
  • Index(es):
    • Date
    • Thread