Skip to main content
Participant
November 9, 2023
Question

Script to open a folder using AppleScript

  • November 9, 2023
  • 1 reply
  • 245 views

I have a Filemaker Database and have been using AppleScript to open a Folder with Bridge forever.

 

For along time this script worked niecly:

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

tell application ("Adobe Bridge")

activate

do javascript openFolder

end tell

 

When "do javascript" stoped working I used this quick fix instread:

tell application "Adobe Bridge"
activate
open $path
end tell

 

Since Adobe Bridge 2024 this only works if a Bridge window is already open…

 

Can someone point me in the right direction?

 

This topic has been closed for replies.

1 reply

yopplescript
Participating Frequently
December 15, 2023
Nice to meet you.
Please excuse my comment.
As you may know,
It appears that "Bridge 2024" no longer has AppleScript support.
It does not seem likely to work because the AppleScript dictionary sdef file does not exist.
 
○References
 
So, it may be necessary to open the Bridge window from outside of Bridge.
After opening the window using the "open" method of the shell command
How about the following code that opens the folder path in applescript?
 
set _path to "/Users/userFolder/someFolder/" 
--Rewrite the path of the folder you want to open accordingly
 
set bridge_app_path to "/Applications/Adobe Bridge 2024/Adobe Bridge 2024.app/" 
--This is the path to the Bridge application. Rewrite this accordingly.
 
tell application "Adobe Bridge 2024"
activate
do shell script " open   '" & bridge_app_path & "'"
open _path
end tell