Applescript: color file name in finder

Hi Community,
I'm working on a huge data management program and i want to be able to tag certain files with incorrectly inputed data so i can easily go back to them later. Rather than moving them all to a certain place, I was wondering if, with applescript, there's a way to color their labels. Hopefully without clicking. Thanks.

It's trivial to set the label of a file:
set theFile to (choose file) -- or however you're identifying your file
tell application "Finder"
          set label index of file theFile to 3
end tell
where 'label index' is the index to the labels on your machine.
The issue is how to identify which files to change.

Similar Messages

  • Can't rename file name under Finder even as an administrator.

    As an adminstrator to my MacBook Pro, why can't I rename certain file name  under Finder?

    Have you tried running lsof from the Terminal?
    Lsof will show you any files that are open, the likelihood is that your file is in use.

  • Can not change file names in finder

    Several times over the past week I have not been able to change existing file names in Finder. The mouse moves normally and can highlight the name, but the keyboard instructions, including "delete" or typing, does not result in any response. All other programs continue to function normally.
    Restarting the computer solved the issue for a while, but it happened again.
    Reading over the previous posts, none of them apply (I do not have those programs).
    Any idea why this happens and how do I fix it?

    This same thing happens occasionally (or maybe rarely is a better word) for different users here at my work.
    I haven't had the problem myself, and thought it was gone now when everyone is running Mac OS 10.4.7 (we ran 10.4.5 just recently) but a user just got the problem 5 minutes ago. All apps except Finder respond to keystrokes.
    Relaunching the Finder using "Force Quit..." from the Apple solves it, but I guess sooner or later the problem will come back.
    Would be great to know what's causing it.

  • If I have a pic in more than one album, does iPhoto make more than one copy of that pic?  When I search the file name on finder, it seems to be showing one copy of that file for every album it's in.

    If I have a pic in more than one album, does iPhoto make more than one copy of that pic?  When I search the file name on finder, it seems to be showing one copy of that file for every album it's in.

    No it doesn't. Albums simply reference the photos in the Library. A single shot can be in 100 albus and use no extra disk space at all.
    If you have the same shot in two Events then yes, the file is duplicated.
    When I search the file name on finder, it seems to be showing one copy of that file for every album it's in.
    The Finder doesn't really understand the iPhoto Library. It's quite possible for the iPhoto Library to contain many files with the same name. The Library also contains different versions of the same shot - thumbnail, originals and edited version. This is normal.
    Regards
    TD

  • Blue background behind some file names in finder

    Hello,
    I've been noticing that some of my file names have a blue background behind them, while others don't. It's not an alternating pattern either. It's very random. Most files have the blue background, while some have a while background behind the file name.
    This is happening in Finder, and in all folders.
    Thanks

    Thanks, I'll give that a try.
    I'm wondering though, is there a default setting that is set when the OS is loaded? We just did a re-install of OS 10.4 on the machine, and I'm wondering if there is a setting that needs to be changed for new files that are downloaded from email? I'd just like to get rid of the color altogether.

  • Default photoshop .ACO color file name

    Does anyone know the name of the default ACO color file?  As a teacher, I have a student that has lost all the red colors in his swatches.  The machine is used by other students and their colors are fine.  I've tried resetting his colors and everything else I can find and have chatted with here on the forums.  I'm starting to think that somehow he deleted the aco folder or something.  Thanks!

    Right-click the PS app file>Select Show Package Contents>Required>Default
    Swatches.aco
    You might copy from another machine and save in this location to replace
    the default .aco file.
    -JM

  • Aperture: After changed the file name in Finder Aperture can't load the referenced file anymore

    After I've changed the file name/format in Finder Aperture can't load/relink to the referenced file anymore. For some reasons I don't like to reimport the file.

    As you told, the command "Locate Referenced File" doesn't work, if the filename doen't match exactly. And the filenames should keep their new names.
    "Locate Referenced File" will be able to reconnect one file at a time, if you direct Aperture to the matching file in the Loate Referenced File dialog, but it will not be able to recognise the other matching referenced files and to reconnect them all at once with the "Reconnect All" button.
    It will be a lot of work to reconnect the one by one.  Usually it is much easier to rename the original master files using Metadata > Batch change in Aperture than to try to do that in the Finder.

  • It appears that Apple has taken away the ability to highlight, in color, file names, replacing them with just a hard-to-see colored dot. Can I get back the ability to highlight the whole file name in color?!

    It appears that Maverick has banishd the ability to highlight, in color, file folder names, replacing the color highlight band with a hard-to-see color dot. Is there a way to get the color-band highlight ability to operate?

    Welcome to Apple Support Communities
    Apple has replaced that feature in OS X Mavericks by color tags, so you cannot get it back. The only thing you can do is to send feedback to Apple about it, so they will think about including it in future OS X versions > http://www.apple.com/feedback

  • How to remove a file name in Finder window places

    When I open Finder window I want to remove a file name in places. I don't use the file anymore and want to remove it.

    Hold down the command key and drag it out of the sidebar.

  • How to see the whole file names in finder column view?

    Hi guys,
    I like to use finder in column view. However, most of the times, the file names get trunked and I have to redim the column to see the whole names. Other day, without wanting to, I must have pressed some key combination, and the column got redim automatically, so I could read the whole file names. So, my question is if does anybody know how to achieve this?

    I don't know what "redim" means, but if you double-click the column separator, it becomes wide enough for the longest name. If you Option-double-click it, all columns become wide enough for the longest name in each column.

  • Repeated file names in Finder?

    Greetings!  File names are repeated (2, 3, or 4+) times in Finder for some of my files (e.g., pdfs, excel files, word docs).  I'm guessing this might be a setting some where that needs to be fixed related to the view or perhaps even related to duplicating files.  Any ideas on how to fix this?  Please note that I am a long-time
    Thank you in advance for your time and suggestions!

    Someone posted a similar problem last week that was traced to a corrupt font. See if this thread helps:
    http://discussions.apple.com/thread.jspa?messageID=4749618
    Note the link toward the bottom to a font management article by one of the Level 4 posters.

  • Sort order of alphanumeric file names in Finder

    File Name Sorting
    I often using dates for file names - for letters and for photos in particular, with a format something like yymmdd, e.g., today's date, December 27, would be 071227. Occasionally I may use 20071227. If I have the year and month but do not have a specific date, the file name might look like 0712xx. The sort sequence of files in the various Finder views does not seem to be what I would expect, based on standard computer alphanumeric sorting rules. Here is what I am finding - three files beginning with file names 0708xx, 070212 and 070521 will appear in the Finder list as follows:
    0708xx
    070212
    070521
    whereas I would expect the proper sort order to be:
    070212
    070521
    0708xx
    If I change "xx" to "00" then the sort order is strictly numerical, i.e.,
    070212
    070521
    070800
    No one can explain why the files sort per the first list above, if I use the "xx" convention for the date. Is there a Leopard bug, or is the sort order based on an algorithm I am unfamiliar with.

    Tom's comprehensive article provides the answer but is perhaps a bit much for those looking for a simple, easy to remember rule. The brief one at File System Overview: Sorting Rules may be useful in this respect:
    "Digit sub-strings are sorted by numeric value rather than as characters."
    IOW, much like a human would naturally do, the Finder considers numeric expressions as potentially multi-character entities.
    Except ... just like humans, it seems not to know what to do with leading zeros. Try this:
    Create a new folder & add to it 4 sub-folders named as follows (all "0" characters are zeros):
    2
    2aa
    02
    02aa
    Note that in list view, Leopard sorts them by name as follows:
    02
    2
    02aa
    2aa
    But, try selecting them in order by hitting the tab key repeatedly, which should move you down the list one item after the other ... but doesn't.

  • Export File Names from Finder Window...

    I want to export all the file names in a finder window to a file that I can use in Excel (txt, csv, etc.). Can I do this directly from the finder window somehow?

    The answer just above is excellent.
    One additional point which might assist when importing into a spreadsheet.
    If you use a simple naming convention which I developed about 6 years ago for exactly this purpose, you can sort on various features of documents, etc.
    The name of each file is:
    International date,originator,receiver,subject
    This structure looks like this:
    2008-09-12,dwc,you,naming files for spreadsheet use
    THis allows for automatic date sorting or date structuring of files chronologically
    It allows one to know who or what was the source of the document
    It allows one to know to whom it was sent
    and it allows a brief subject with keywords
    More important, because commas are used to separate the fields, they can
    be used as delimiters when importing the text file into a spreadsheet, thus allowing far greater sorting capabilities.
    Best wishes,

  • Showing dir/file name in FINDER

    Hi,
    I'm somewhat of a control freak and have this insane desire to know exactly where things are in my system(s). If I look at a file in the Finder, I usually have no idea what directory I'm in. Is there a way to display the complete path for each file I look at?? I can do it from a terminal session by setting PS1 to echo a pwd, and I'd like the same capability in the aqua interface.
    I had something in Panther that did what I needed, but lost the MacAddict article tht told how it was done..
    Any suggestions to keep my blood pressure down and less use of my mouse-click hand - I'm getting carpel tunnel.... <G>
    Walt

    In Finder, with any window frontmost, choose "Customize Toolbar..." from the View menu. Drag the "Path" tool to the toolbar. This tool produces a popup (pop down, actually) hierarchic list of the window's path all the way back to the Computer. It is primarily for navigation back up the path hierarchy, but also works well as a visual reference.
    BTW, with a bit more stress on your carpal tunnels, you can do the same without the tool: Command-click on any Finder's title & a similar pop down list representing its path appears.
    You could also go the zero-stress route of using column view, as long as your screen is large enough for the complete path o appear without horizontal scrolling.

  • Different File Name in Finder vs. File Name in Console?

    I'm trying to rename the Library/Internet Plug-Ins folder.
    As root, I use mv in Console. I do ls and it shows me the new name.
    Finder couldn't care less. Finder keeps showing "Internet Plug-Ins".
    I could see OSX not letting me change the name of an "essential" system folder in the first place -- but how could Unix be showing me a different name than the Finder?

    Oh just ignore me -- I wasn't typing sudo every time...

Maybe you are looking for

  • How to send timer job email to "assigned to" feild value in a task list?

    Hi All, How to send timer job email  to "assigned to" field value in a task list if due date is after two days from now?

  • Error in DTP?

    Hi Gurus, I am trying to load the data from data source 2lis_03_BX to DSO(Write optimized DSO: Z_DSO_BX). Data is in the data source(Checked in extract checker and in PSA). Created Transformations in DSO and DTP is scheduled.In DTP Monitor--> process

  • Adobe Acrobat Pro 9 or 10 for Mac

    Hi, Is Adobe Acrobat 9 or 10 available for Mac users? If so can you please direct me to the right place for download? I couldn't find Adobe 9 pro for Mac and Adobe 10 downloads are only for Windows. I just got CS5 Master Collection but for some reaso

  • Why does Keynote 09 started to crash on heavy presentations?

    I have always worked with big, heavy presentations, that includes text, images and videos, but a few weeks ago Keynote 09 is crashing when I try to opne it!!! I have my entire life in those presentation and can't even think about losing it! I have tr

  • Difference between Smart Forms and Adobe Form

    Hi all, What are disadvantages of Smart form in SAP , What is difference between Smart Forms and Adobe interactive Form. I heard from someone that in future Adobe interactive Form will repalce smart forms. Is it true or not Best Regards Srikanth