• 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: label index
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: label index


  • Subject: Re: label index
  • From: Iurista GmbH <email@hidden>
  • Date: Fri, 17 Feb 2012 20:19:26 +0100

Am 17.02.2012 um 17.52 schrieb Luther Fuller:

> I've just noticed that this works ...
>
> tell application "Finder"
> 	make new folder at (path to desktop) with properties {name:"TEST FOLDER", label index:2, comment:"some text"}
> 	set label index of the result to 2
> end tell
>
> But, this does NOT work ...
>
> tell application "Finder"
> 	make new folder at (path to desktop) with properties {name:"TEST FOLDER", label index:2, comment:"some text"}
> end tell
>
> It should work, but it fails to set the label index of the new folder to red.
> Has anyone noticed this? Is there a bug here?


Well, if that's a bug, I do not know, but I can confirm the phenomenon with osx 10.6.8. Maybe it has to do with the fact, that you can assign a label only after creation of the item.

But at least, you may shorten the first script (you dont need label index in the list):
tell application "Finder"
	make new folder at (path to desktop) with properties {name:"TEST FOLDER", comment:"some text"}
	set label index of the result to 2
end tell
Works here.
Rudolf
 _______________________________________________
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: 
 >label index (From: Luther Fuller <email@hidden>)

  • Prev by Date: Re: label index
  • Next by Date: INDESIGN: Convert to Profile
  • Previous by thread: Re: label index
  • Next by thread: Re: label index
  • Index(es):
    • Date
    • Thread