Pass Bridge Selected File Name Path to AppleScript Variable

Hi,

Is there a way to pass a selected file’s File Name and Path from Adobe Bridge to AppleScript Variable. I need to process selected file in AppleScript like Copy to other Folder, Rename with Sequence Suffix etc.

My knowledge of javascript is very limited. Any help will be highly appreciated.

As Bridge supports javascript, so something like that will fetch selected file name and path

A Sample work flow like

#target bridge
var thumbs = app.document.selections;
var selectedFile = thumbs.spec;

Fetch and return value to AppleScript

set workFile to Value returned form javascript