Applescipt manipulating color label

In manipulating image version's color label,
set color label to no color label,
It results in browser's label column,"no label" not a nomally "--"
Is there way to set label to "--" ?
-- some operations to determine color label here reseult to vResult
-- inside tell image versions
if vResult is equal to "" then
set color label to purple
else
set color label to no color label
end if

Looks like the color label is just a string that Aperture interprets to actually turn on the color. So for example an image marked Orange has an orange dot and the string "Orange" next to it.
So as a long shot you can try try setting the color label in the script to Null (or the applescript equivalent) or even just "".
On the images you've set the color label to "No Label" with the script, do they still show up in searches for images with no label? If they do then does it really matter what they look like in column view?
regards

Similar Messages

  • Apparent bug in 3.1's handling of color labels

    This ties is with [Applescipt manipulating color label|http://discussions.apple.com/thread.jspa?threadID=2645193&tstart=15] posted earlier today.
    If you set the color label of an image to have no color label via the pulldown in the metadata tab of the inspector (select the first circle which will display the text *No Label* when selected) the images color label is set to the string "No Label". Confirm this by looking at the browser in column view, the third column in the default view is Label. You'll see that for colors you'll get a circle of the color and the string name of the color. You'll also notice that other images that do not have a color label simply have --
    The problem arises if you select *No Label* in the search field or Filter HUD. The images labeled as *No Label* rather then the empty string will not show up in the search.
    The *No Label* string can be cleared out by setting the images label to No Label via the +Command 0+ keystroke.
    The Applescript command to set color labels also exhibits this behavior.

    Working with events can sometimes be interesting.  I concentrated my efforts more on fixing the issue than trying to determine if this is a bug or not.  I modified your code slightly to filter events based on click type and I think it is working the way you intended.  Let me know it is not quite right.
    Attachments:
    Double-click-click[2].vi ‏62 KB

  • Close all folders in Mail?  Color Label folders?  Find folder?  And More!

    Hi all.
    I have a LOT of mail. They're all very organized, though. Heaps of Mailboxes (Folders) and Sub-folders.
    I also have heaps of rules dutifully sending incoming mail to their appropriate mailboxes.
    However...
    It has reached a point where one of of the major bottlenecks in my daily workflow is sorting through all these mailboxes.
    There are 5 primary mailboxes with perhaps 100-ish subfolders or sub-subfolders. Maybe more.
    When they are all open, or a lot of them are open, it is difficult to find the a specific folder when I need it. It would help if I could close all open folder with a shortcut.
    Is this possible?
    It would also help if I could visually distinguish each level. Can I color label the mailboxes(not the messages themselves)?
    Another help would be if I could run a search for a folder Mailbox name. Is this possible?
    Lastly when I create a rule I would love it if there was an option to 'Create new Mailbox' in the rule dialog box rather than having to create the mailbox first. Am I just missing this? See link for illustration:
    http://img.skitch.com/20080820-eaqmy89emw6xm5pcj86iuqu992.jpg

    I just had a look and you need to create the mailbox PRIOR to asking the rules to move it into that.
    Now, automator lets you create a new workflow, but not sure as to how to set that one up (might be possible; however, my mathematical brain tells what you want to achieve is flawed:
    1) IF new mail equals "tangerine", create new mailbox tangerine, then move message to mailbox "tangerine. (FINE so far!)
    2) the second "tangerine" message arrives, and the workflow should FAIL (because it cannot create a "new" mailbox "tangerine", as there is ALREADY a mailbox named "tangerine")
    3) if automator cannot execute "If" and "and" and the "sort by" all together, then distinguish (a "tangerine" message might actually need to go to "pear" but refers to "pears and tangerines", so it ends up in the wrong mailbox), you may have to start and restart mail, until all stages of the script have been executed.
    You see the problems?
    Anyhow, here is a link to some automator info:
    http://automatorworld.com/archives/automator-for-os-x-105-leopard-revealed/
    Good luck

  • How to "Highlight/Color Label" a single event in Month View.

    Hi.
    How do i either Hightlight or Color Label a single event or a single calendar in Month View? Like the pic shows, the one on the right...
    Thank you for your time.

    Never Mind... Thank you though..
    It's an all day event...

  • Can not color label more than one file at a time

    Hi,
    I've had this problem since 10.6.6-ish, i can not color label more than one file at a time in the Finder.
    Wether i select two, twenty or twohundred only one file gets color labeled.
    It doesn't seem to matter if i assign a color label through the File menu or right click > label.
    Figured a re-install might fix this but it hasn't (even a clean install without restoring any kind of backup).
    Does anyone else have this issue and/or a fix for it?
    Thanks,
    Jay

    Aaaaanyone ?

  • How do I find images in LR 2.4 (imported from CS4 Bridge) that have color labels already assigned In CS4 Bridge? I have set both Bridge and LR color labels text to match (eg Green for green, etc).

    How do you find images in LR 2.4 that have been imported from CS4 Bridge and have been assigned a color label in Bridge?  I have set both LR 2.4 and my CS4 Bridge to match the text for each color to be the same (eg. Green for green, etc), and the filter search in LR 2.4 shows that a label has been assigned, but I am unable to identify and locate the specific images in LR 2.4 that have had a color label assigned from CS4 Bridge.  I have tried to search via attribute, metadata, text, etc...Is it necessary to re-assign color labels all over again, image by image, in LR 2.4, or is there a way to automatically have the color labels assigned in CS4 Bridge be assigned and searchable to the images after they have been imported into the LR 2.4 catalogue from the Bridge program?

    JohnM.
    I closed both programs and re-imported photos and re-tried the action of having LR  read the XMP metadata from the CS4 files, and it seems to work now just fine...don't know why now and not before, but thanks much. Is there a way to have LR do this automatically upon import of images from CS4?  I tried to do this with an import metadata preset, but no luck.  It seems as if I can only do this once the images have already been imported into LR, and then to have to have LR read the metadata from the CS4 Bridge files.  thanks gain.

  • Grid View: Flags, Rating, Color Label read only? / Mark Images Read only?

    Hi
    I'd like to see the flag-status, rating and color label assigned to an image as cell icons. But if I show them as Cell Icons, I am also able to change them, which happens to me quite often accidentally when I click into the frame of a image to change selections.
    Is it possible to show these markers for each image without being able to change them in the frame? I would be quite happy being able to change them from the tool bar, but still being able to see them on the single image.
    Related to this:
    Is it somehow possible to mark images as read only, so that further changes (development, metadata etc.) can be made impossible? This would be nice for older images, which have been processed completely and should stay that way, inhibiting accidental changes to images. Sometimes it is difficult to even notice when one accidentally changes metadata on an image.
    Thanks for your thoughts
    Beat Gossweiler
    Switzerland

    Yes it's a bug. I see it on Mac platform.

  • Problems importing photos with a color label.

    Hello:
    I'm trying to import photos and assign a color label at the same time. My idea is to know what pics are just imported and put they into "status 0" of my workflow, that is, the pic is just imported and need to be accepted/rejected, then be classified, then made basic corrections, etc, etc. I'm going to change color labels to go from red to green status... a tipical workflow.
    OK, this is what I did:
    Import pics:
    * I select the directory and create/assign a new metadata preset.
    * In this metadata preset I set author/creator and some other IPTC fields.
    * Also I put the word "red" in Label field.
    * Do the import...
    What I can see then:
    The photos are imported and the red label is visible. You can see the red label in the grid view (at every photo's bottom) and also, at the bottom toolbar, you can see that the red label is checked. If you click at the small label at the photo's bottom you can see the small menu with the red label checked.
    OK, it seems that the color label is imported but...
    In the filmstring, if you filter to see only the red labeled pics... nothing is selected !! You have to unassign and assign again the red label and this time you can filter by color label.
    What is happening ? Does Lightroom read the color label from two different fields from the metadata ? Is something not synched during the import process ?
    Regards,
    Javier.

    Sorry if I couldn't explain correctly. English is not my main language...
    I know you can assign names to the existing colors label and create different sets. I just create my own set.
    What I'm refering to is to the Label field that is part of the basic IPTC data into a metadata preset. I'm not sure if it's the same field that is used to assign color labels.
    What I did was to create a metadata preset, assign the word "red" as the value of the IPTC Label field and then apply this preset into an import. All the pics were imported with the red label set, so yes, it is possible to do the import and set the color label. The problem is that you can't use the filters that are into the filmstring view. So there is some mismatch here: the red color is shown at the bottom of the pics imported, but the filmstring filters can't "see" that the pics have this color label assigned.

  • Lightroom color labels lost on transition from one pc to another

    I started using a mac laptop in the field and always used windows pc at home. A portable hard drive holds the lightroom catalog. It's fat32 formatted so it can be used by both mac and windows.
    A catalog made by the mac lightroom opens fine in windows. However, all the color labels are lost. The flags and stars are retained.
    If a color label is changed on a photo by the windows version of lightroom, then when that catalog is opened on the mac, that photo has no color label. (even though the mac originally gave it a color label)
    And all the original color labels that were made by the mac magically return as they were assigned.
    To trouble shoot this, I installed the Lightroom 3.6 trial on 2 other pcs - one runs windows 7 32 bit and the other windows 7 64 bit. These installs see the mac created catalog properly.
    All the color labels are there and changing one on a windows box is properly reflected on the mac when that catalog is opened.
    This is so annoying.
    My main pc must have an allergy to my mac.
    I removed and reinstalled lightroom on my pc-same problem.
    Now i have to figure out what is interfering with my main pc lightroom install.
    It cant be lightroom cause i removed it and reinstalled it. but it might be one of the plug ins i use. these magically reappearred even after i reinstalled lightroom after removing it.
    Anyone have suggestions?

    The color labels are preserved between different programs (for instance between Bridge and Lightroom) and I imagine between different LRs on two different computers only when the texts entered as description for the color labels in >Metadata >Color Label Set >Edit is absolutely identical on both computers down to upper / lower case, spaces, numbers, hyphens, etc. If one dexcription for - lets say the red label - deviates from the other by only a semicolon the label will not display properly.
    WW

  • How to get the same colored labels as in the gmail web interface?

    Hi,
    I would like to get the same preview in Mail.app (with different colored labels) as in Gmail. Currently, my Gmail account in synced with Mail.app, hence I have access to all my mailboxes (hence all my labels). I would like to add a rule which reads as :
    if Message is in (gmail label mailbox)
    then Set color to (color)
    However, this feature doesn't seem to be here. Basically, how to automatically colored a message being in a given mailbox (to get a nice rainbow in my general Inbox).
    Thanks in advance!
    Damien

    I'm pretty sure you can't do that in Mail. If you do find out, post back—I'd like to know too!

  • Finder does not show all colors from selected color Labels

    Since a view days finder does not show all Color Label colors. When I select either yellow or green it is selected, but it does not show in the file list with details, I can see it in icon and 3 pane view, but not in the detail list view.
    does anybody know why or how? Or what plist files I might need to delete to get this reset?

    Create a new account, name it "test" and see how your labels work in that User acct in list view? (That will tell if your problem is systemwide or limited to your User acct.) This account is just for test, do nothing further with it.
    Open System Preferences >> Accounts >> "+" make it an admin account.
    Let us know and we'll troubleshoot this further.
    -mj
    [email protected]

  • Automator: Apply Color Label and Copy to Folder

    I'm trying my hand at Automator, and I need help with one of my workflows (⇪). Basically, it's a service (accessible via right-click) that will apply a color label on an image file, and then copy that image file to a corresponding folder with the same color label. My current version works fine, except for the fact that I had to create seven versions to accommodate all seven colors.
    Is there any way to turn the color into a variable? I want the workflow to prompt me for a color, and then use that choice to run a search for the appropriate folder. I'd rather not hard code the color choice into separate services that all do the same thing.
    Also, the service currently assumes that it will run fast enough before I can deselect the target file. I'm sure it's possible that the folder search could lag out while I select another file, and the service will ultimately copy the newly selected item, rather than the initial target. Is there a way to ensure the service acts on whatever was selected when it was first triggered?
    I don't know AppleScript beyond copying-and-pasting other people's codes, so that limits my automation quite a bit. I don't know how to prompt for a label index choice and then feed the result into a find function. I also don't know how to record the file path of the selected item, and then feed that into the copy function at the end to ensure it doesn't copy the wrong file.

    Typically a list of items is passed to a workflow, so you will usually (depending on what you are doing with the items) need to step through the items in that list. If there is only one destination folder with the target label, you can just search for it, otherwise you will need to specify the destination in some other way.
    The following Service workflow example assumes that there is only one destination folder that has a given label color. It gets the label index of one of the input items and finds a folder with the same index at a specified base location (to limit the search range).
    1) Input items are automatically passed to an application or service, otherwise another action to get FInder Items can be used
    2) *Label Finder Items* (show the action when the workflow runs)
    3) *Run AppleScript* (paste the following script)
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    font-weight: normal;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 720px; height: 340px;
    color: #000000;
    background-color: #DAFFB6;
    overflow: auto;"
    title="this text can be pasted into an Automator 'Run AppleScript' action">
    on run {input, parameters} -- copy to a labelled folder
    This action is designed to follow a "Label Finder Items" action.  It will get the
    first folder of the base folder that has the same label and copy the input items
    to that folder.
    input: a list of Finder items received from a "Label Finder Items" action
    output: a list of Finder items to be passed on to a following action
    set output to {}
    set skippedItems to {} -- this will be a list of skipped items (errors)
    set baseFolder to (((path to pictures folder) as text) & "Shelley:Mary:") as alias -- a place to start looking for the destination folder
    tell application "Finder"
    set theLabel to label index of (the first item of the input) -- just pick one, they should all be the same
    get folders of (entire contents of baseFolder) whose label index is theLabel -- include subfolders
    -- get folders of  baseFolder whose label index is theLabel -- no subfolders
    if the result is not {} then
    set theDestination to the first item of the result
    else -- no folder
    error number -128 -- cancel
    end if
    end tell
    repeat with anItem in the input -- step through each item in the input
    try
    tell application "Finder" to duplicate anItem to theDestination
    set the end of the output to (the result as alias)
    on error number errorNumber -- name already exists, etc
    set errorNumber to "  (" & (errorNumber as text) & ")"
    -- any additional error handling code here
    set the end of skippedItems to (anItem as text) & errorNumber
    end try
    end repeat
    showSkippedAlert for skippedItems
    return the output -- pass the result(s) to the next action
    end run
    to showSkippedAlert for skippedItems
    show an alert dialog for any items skipped, with the option to cancel the rest of the workflow
    parameters - skippedItems [list]: the items skipped
    returns nothing
    if skippedItems is not {} then
    set {alertText, theCount} to {"Error with AppleScript action", count skippedItems}
    if theCount is greater than 1 then
    set theMessage to (theCount as text) & space & " items were skipped:"
    else
    set theMessage to "1 item was skipped:"
    end if
    set {tempTID, AppleScript's text item delimiters} to {AppleScript's text item delimiters, return}
    set {skippedItems, AppleScript's text item delimiters} to {skippedItems as text, tempTID}
    if button returned of (display alert alertText message (theMessage & return & skippedItems) alternate button "Cancel" default button "OK") is "Cancel" then error number -128
    end if
    return
    end showSkippedAlert
    </pre>

  • Color Labels not showing across Network

    I appreciate any help I can get with this...
    We have a 4 macs on this network right now in our Art Dept.
    2 are 1.6GHz PowerPC G5's 1GB RAM
    2 are 800 Mhz Power PC G4's w/ 1GB RAM
    All are running 10.4.5
    We have a Buffalo Terastation as our Unix Server with Gigabit Networking.
    It is very important for us to be able to see the folder/file color coding system. It is not working on one of our G4's. It will allow me to change the color, but will not be visible from other machines neither will it see the color if it is changed from another machine.
    Has anyone else ever had this problem?
    What can I do to fix this machine so it understands the color system?
    Is there an alternative to the coloring system?
    Is there a plugin or expansion for this to add even more colors?
    This machine is worthless to us if this does not work...this is a very fast paced environment where we need real-time color labels to constantly know the status of our ads!
    Thanks much!!!
    800 Mhz PowerPC G4   Mac OS X (10.4.5)   1 GB SDRAM

    I have been having the same problem and I just discovered a solution. At least it worked for me. One of our computers was connected to the server using cifs instead of afp. Once I reconnected using afp the color labels worked fine.
    Select your server on the desktop of the computer you are having problems with and get info. Under General info, see if the Server address starts with afp or something else. Under the Go menu in the finder select Connect to Server... and make sure you put afp:// before the server address and connect.
    Hope this helps, if not Good Luck!
    PowerMac G5   Mac OS X (10.4.5)  

  • Newbie Question re stacks, import options, & color labels

    I probably shouldn't just group together multi-topic questions, but creating a new topic for each one seemed wasteful. I'm just starting to migrate to Lightroom from PSE, so I have a few questions that I couldn't find answers to.
    1. Can I change the color of the color labels? For example I find that the blue color label does not stand out very well with the gray background, so I'd like to make it a deeper blue.
    2. Is there an import option (when importing from removable device) to delete the photos (automatically) after copied to disk and imported?
    (yes, I know I can manually do it, I'm just lazy)
    3. Is there a way to run the auto stack feature without losing already grouped/stacked photos. For example if I have photos A, B, and C and A and B are already grouped, then I run the auto stack with a time setting such that B would pick up C, I want it to add C to A and B, not create a new group with just B and C. AND/OR is there a way to run the auto stack on just the photos I have selected? I did a lot of testing and it seems like I can run it on an entire folder of photos or my entire catalog, but not just, say 20 selected photos.
    4. Is there any option that I can turn on that will automatically put the virtual copy on top of the stack when I create one? (again I'm just being lazy)
    Finally, sort of a general usage/workflow question .. I've done a bit of reading on virtual copies and snapshots and I still can't decide when one is better than the other ... they seem to basically have the same function - to create non-destructive copies of an original photo that can than later be exported or used. Any thoughts on how people are using them or when one is better than the other?
    Thanks! Kelly

    Thank you both for the answers/advice.
    One more quickie, I was wondering if anyone knew how Lightroom 2 was going to be sold, ie for owners of 1.4 will it be a paid upgrade or free? I ask because I am still in the trial version of lightroom (was doing some testing to see if i wanted to stay in PSE or move to lightroom), and I have decided that I would like to move to lightroom, but there are some features in version2 that I already know I will want, so I'm debating about waiting for that release (to save money), unless it would be a free upgrade for owners of 1.4.
    John - why is it better to copy from the card reader to disk then import into lightroom? Just curious as I have been doing quite a bit of research in last couple of days and it seems that a lot of people use that type of workflow (first copying to one folder on hdd, then importing, and then maybe moving later on). In PSE I used to always just use the Adobe interface to copy then import in "one step" (I say one step, but it was obvious that adobe first copied the images then imported them). Anyway I'll probably do as you suggest but just like to get into knowing exactly why I'm doing it a certain way.
    Andrew - good to hear, that is actually what I had started doing, so it's good to know that it's a "proven" workflow.
    Thanks!

  • Display - Color Labels Messed Up

    Display suddenly switched from normal to all colors being wrong. Color labels show up incorrectly, but I cannot figure out how to correct them.

    Welcome to Discussions Vince.
    Have you gone to System Prefs>Display and calibrated your display? Also, have you chosen iMac profile? In the display part, have you selected 1680x1050?
    Calibrating your color should bring it back to normal, do let us know how it works out,
    Miriam

Maybe you are looking for

  • Can I watch a movie on my HDTV played from my laptop?

    It seems like it's IMPOSSIBLE. I don't have words to say how frustrated I am to have this set. I just bought a HDTV so I will not watch my movies on the laptop anymore. I thought it would be something very straight forward to have everything configur

  • Please recommend a sound counting application

    Please excuse me if this post is in the wrong section. I have been searching for about a week and cant seem to find an application that counts sounds from a microphone. I have found one that will count beats per minute of a mp3, but I would like to a

  • Detailed list per profit center in FAGL_FC_VAL

    Hi, we are on ECC6 and have a question relating to foreign currency revaluation. If we run transaction FAGL_FC_VAL the list that is returned shows the document lines, their historic rate, revaluation rate and the amount to be posted. However, this li

  • Use of Oracle 9 license

    Hi, I am new to Oracle. I would like to check if it is ok to install Oracle database for educational purpose, not commerical use, in an corporate environment ? Thanks and regards. Chengbc

  • DHCP Relay not working

    I have a 3550 doing routing between vlans with two 3548's connected. I've enabled the ip helper address for the specified vlan I'm testing, but the workstation is unable to contact the server. The DHCP server is Windows Server 2003. What am I missing