• 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: Tue, 22 Feb 2011 21:25:53 +0900

Jan,

Thank you for the suggestion. My situation is that the folders are not on the same level.

In the particular code I am writing, the user chooses a folder, inputs a folder name, the script creates a folder with that name in the selected folder and assigns a specific label to both.

Since I have variables to both paths, I'd like to use those variables in a smart way to "batch assign" them a new label. And because I only have 2 folders, I'm not really looking for a loop but rather to a way to apply a property on an arbitrary list of items.

Jean-Christophe

On 22 févr. 11, at 17:15, Jan Bultereys wrote:

> Hi Jean-Christophe,
>
> What about this:
>
> set mainfolder to (choose folder)
> tell application "Finder"
>    set label index of every item of mainfolder to 6
> end tell
>
> Best regards,jan
>
>
>
> On 22/02/11 08:32, "Jean-Christophe Helary"
> <email@hidden> wrote:
>
>> 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

  • Follow-Ups:
    • Re: apply the same property to a number of items
      • From: Deivy Petrescu <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