Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Script to open a folder using AppleScript

New Here ,
Nov 09, 2023 Nov 09, 2023

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?

 

TOPICS
Scripting
201
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Dec 15, 2023 Dec 15, 2023
LATEST
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
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines