Automatic labeling new added files

Discussion in 'Mac Programming' started by ngoh, Mar 21, 2009.

  1. macrumors newbie

    Joined:
    Nov 3, 2008
    #1
    Hello, I'm trying to come up with a script that will automatically label green (or whatever color) new added files on X folder. I have the new item alert script enabled on the folder, but would like to add the feature of automatic labeling.

    Thanks for your help.
     
  2. macrumors regular

    hiddenpremise

    Joined:
    Jul 25, 2008
    Location:
    Somewhere between my imagination and reality
    #2
    According to Finder's dictionary in Script Editor running on a 10.5.6 system, the featuring controlling label's is not available.
     
  3. Moderator emeritus

    kainjow

    Joined:
    Jun 15, 2000
    #3
    If you have Xcode you can download the osxutils package, and compile the setlabel tool which lets you set the label on a file. Combine that with AppleScript's do shell script command and you're set. If you don't have Xcode let me know and I can upload a compiled version of the program.
     
  4. thread starter macrumors newbie

    Joined:
    Nov 3, 2008
    #4
    I don't have Xcode yet. I'd appreciate if you could upload the compiled version of the program.

    Thanks for the help, hiddenpremise and kainjow.
     
  5. Moderator emeritus

    kainjow

    Joined:
    Jun 15, 2000
    #5
    Here you go. The binary is in build/Deployment. To see how to use it in Terminal type "man setlabel.1" where setlabel.1 is the full path of that file.
     

    Attached Files:

Share This Page