Skip to main content
Inspiring
Jun 6, 2017 8:51 PM UTC
Answered

Show Labeled Items Only

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 is closed to new replies. Start a new post to keep the conversation going.
SuperMerlin
SuperMerlinCorrect answer
Inspiring
Jun 7, 2017 3:57 PM UTC

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.

9 replies

SuperMerlin
Inspiring
Jun 7, 2017 7:13 AM UTC

Just create a smart collection...

Translate
Inspiring
Jun 7, 2017 2:13 PM UTC

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.

Translate
SuperMerlin
Inspiring
Jun 7, 2017 2:22 PM UTC

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

Translate