Hottest Free Downloads - DownloadPipe.com Over 197,000 downloads! Bookmark Now!
DownloadPipe.com - New Downloads Every Minute
 SEARCH:
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Finder label texts

 
   Mac (Home) -> Apple Scripts RSS
Next:  Help with script, please  
Author Message
Tobias Weber

External


Since: Jan 02, 2006
Posts: 196



(Msg. 1) Posted: Mon Jun 13, 2005 9:30 pm
Post subject: Finder label texts
Archived from groups: alt>comp>lang>applescript (more info?)

Hi,
it's easy to get a file's label *number*:

set f to (choose file)
tell application "Finder"
get label index of f --as text
end tell

But how do I get the text?
By somehow reading the Finder preferences?

--
Tobias Weber
Back to top
Login to vote
Gnarlodious

External


Since: Oct 23, 2005
Posts: 59



(Msg. 2) Posted: Mon Jun 13, 2005 9:30 pm
Post subject: Re: Finder label texts [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Entity Tobias Weber uttered this profundity:

> Hi,
> it's easy to get a file's label *number*:
>
> set f to (choose file)
> tell application "Finder"
> get label index of f --as text
> end tell
>
> But how do I get the text?
> By somehow reading the Finder preferences?

I guess you mean "comment":

tell application "Finder"
tell file someFilePath
set its comment to "Some comment text"
get its comment
end tell
end tell

-- Gnarlie
Back to top
Login to vote
Tobias Weber

External


Since: Jan 02, 2006
Posts: 196



(Msg. 3) Posted: Mon Jun 13, 2005 10:51 pm
Post subject: Re: Finder label texts [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article <BED343B4.3FB8%gnarlodious@yahoo.com>,
Gnarlodious <gnarlodious.DeleteThis@yahoo.com> wrote:

> I guess you mean "comment":

No, I mean the descriptive string you can assign to each of the seven
colors in the Finder preferences.

--
Tobias Weber
Back to top
Login to vote
Michelle Steiner

External


Since: Aug 30, 2005
Posts: 1352



(Msg. 4) Posted: Tue Jun 14, 2005 10:29 am
Post subject: Re: Finder label texts [Login to view extended thread Info.]
Imported from groups: per prev. post (more info?)

This message is not archived
Back to top
Login to vote
Tobias Weber

External


Since: Jan 02, 2006
Posts: 196



(Msg. 5) Posted: Tue Jun 14, 2005 8:40 pm
Post subject: Re: Finder label texts [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article <michelle-65922F.10294714062005.DeleteThis@news.west.cox.net>,
Michelle Steiner <michelle.DeleteThis@michelle.org> wrote:

> Notice "NOT AVAILABLE YET"; that's been the case since OS X 10.0. Maybe
> some day...

I started on a detour using do script:

#!/bin/sh
for i in 1 2 3 4 5 6 7
do
VALUE=`defaults read com.apple.Labels Label_Name_$i`
if [ "$?" -ne "0" ]; then
VALUE=""
fi
echo $VALUE
done

--
Tobias Weber
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Finder, get name - Hello all - I've got a script that uploads the selected file in the finder to a specified ftp space I own. What I want to do is, after the file is uploaded, the full URL is copied to the clipboard or put in a new text file so that I can easily put it in...

Finder scripting sluggish? - Since I updated to 10.4.11, the following command, which used to run in an imperceptible amount of time, now takes several seconds on my dual 2.5 GHz G5: tell application "Finder" to get processes Anyone able to reproduce this? -- Jerry Kin...

add Finder items of folder to Toast - Hi, the following errors because Finder classes can't be converted for Toast: tell application "Finder" set sourceItems to a reference to (items of folder sourceFolderPath) end tell application "Toast 6 Titanium" add to current...

scripting Quicktime to convert images to jpg - Here is a droplet that I am working on to have Quicktime translate still images generated by iMovie into JPG images that can be imported into iPhoto. on open (theList) tell application "Finder" repeat with x in theList if {"disk&quo...

Help with script, please - Here is the script: tell application "Mail" set foo to the selection set foo to item 1 of foo set address_ to address of item 1 of to recipient of foo if not (name of item 1 of to recipient of foo exists) then set AppleScript...
       Mac (Home) -> Apple Scripts All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum
Categories:
 Windows Forums
 Game Forums
 Linux Forums
  Mac Forums
 PDA Forums
 Mobile Forums
  Top  |  Store  |  RSS Feeds RSS  |  Data Feeds  |  Advertise  |  Submit  |  Bookmark  |  Newsletter  |  Contact