Skip to main content
Inspiring
June 6, 2017
Answered

Show Labeled Items Only

  • June 6, 2017
  • 1 reply
  • 2167 views

In the main Bridge interface there are filtering options to filter by rating (1 or more stars, 2 or more stars, etc) and Show Labeled Items Only, Show Unlabeled Items Only, etc.   The ratings have key commands.  Is there a way to assign a key command to Show Labeled Items Only?  Or a way to script a call to that filter via AppleScript or ExtendScript?

I have a script that opens a folder of images into Bridge but I would like to take that one step further and filter by Show Labeled Items Only.  Any ideas?

set bscString to {text returned} of (display dialog "Enter BSC" default answer "") as text

set characterCount to length of bscString

            set alpha to text 1 of bscString

            set brandCode to text 1 thru 5 of bscString

            set brandStyleCode to text 1 thru 10 of bscString

            set brandStyleColorCode to text 1 thru 15 of bscString

            set folderPath to "/Volumes/extensis/product/" & alpha & "/" & brandCode & "/" & brandStyleCode & "/" & brandStyleColorCode & "/" as text

            set openFolder to "app.browseTo( '" & folderPath & "');"

            tell application "Adobe Bridge CC 2017"

                        activate

                        do javascript openFolder

            end tell

This topic has been closed for replies.
Correct answer SuperMerlin

Is there a "Bridge CC JavaScript Reference.pdf"?  I've only been able to find the CS6 SDK with Bridge JS Reference guides.  Though, within there it has a Filter By Ratings command section with Show Labeled Items Only command having a MenuID:  "ShowLabeled".

I've been working with AppleScript and don't know ExtendScript at all really.  Any help with calling that menuID?


Ah I missed that one, the code is a one line...

app.document.chooseMenuItem("ShowLabeled");

Again you need to know if Bridge is just been opened or if you have changed folders.

Bridge only uses javaScript, so AppleScript is no good.

1 reply

SuperMerlin
Inspiring
June 7, 2017

Just create a smart collection...

Inspiring
June 7, 2017

Hmm, that is pretty great.  I created one with a criteria of "If Label Exists".  It works, but is not automatically selected.  Know if there is a way to default to selecting that collection?  Even being smart it requires me to click on it.

SuperMerlin
Inspiring
June 7, 2017

It could get very messy testing that you have changed folders, the easiest way it just click on the smart collection.