Re: set index of folder
Re: set index of folder
- Subject: Re: set index of folder
- From: Axel Luttgens <email@hidden>
- Date: Tue, 06 Sep 2011 18:58:00 +0200
Le 6 sept. 2011 à 18:28, Robert Poland a écrit :
> Thanks Yvan,
>
> That also gives me an error;
>
> "Can't set «class labi» of "Macintosh HD:Users:rpoland:Scans ƒ" to 3.
Hello Robert,
That's because you are trying to set the label index of a string...
Going further with Yvan's proposal:
set f to ((path to desktop as text ) & "Scans ƒ") as alias
tell application "Finder"
set the label index of f to 3
end tell
or, making use of the Finder's way to refer disk items:
tell application "Finder"
set label index of folder "Scans ƒ" of desktop to 3
end tell
On the other hand, does folder "Scans ƒ" reside on your desktop (as implied from your first message) or in your home directory?
HTH,
Axel
_______________________________________________
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