• 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: make new folder … {…,label index}
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: make new folder … {…,label index}


  • Subject: Re: make new folder … {…,label index}
  • From: "koenig.yvan" <email@hidden>
  • Date: Tue, 07 Aug 2012 10:04:40 +0200


Le 07/08/2012 à 09:50, emile.a.schwarz <email@hidden> a écrit :

Hi all,

 

in a working script - the folders are created in a repeat loop - the label index is not set.

 

Code:

make new folder at front window with properties {name:FldrName, label index:6}

 

But, if I add after that line:

set label index of the result to 6

 

I've got my label index.

 

Am I doing something wrong 


Yes you do.
To be able to set the label index, the folder must exist which is not the case in your code.

set FldrName to "Émile"
tell application "Finder"
set leDossier to make new folder at front window with properties {name:FldrName, label index:6}
--> folder "Émile Schwarz" of folder …
label index of leDossier
--> 0
set label index of leDossier to 6
--> 6
label index of the leDossier
--> 6
end tell

set FldrName to "Émile Schwarz"
tell application "Finder"
make new folder at front window with properties {name:FldrName}
--> folder "Émile Schwarz" of folder …
set label index of result to 6
--> 6
end tell

Yvan KOENIG (VALLAURIS, France) mardi 7 août 2012 10:04:35



 _______________________________________________
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: 
 >make new folder … {…,label index} (From: "emile.a.schwarz" <email@hidden>)

  • Prev by Date: label index integer values
  • Next by Date: Re: Using New High Quality Voices in Lion with Applescript control
  • Previous by thread: make new folder … {…,label index}
  • Next by thread: label index integer values
  • Index(es):
    • Date
    • Thread