Skip to content

Instantly share code, notes, and snippets.

@Yamonov
Last active December 5, 2025 14:11
Show Gist options
  • Select an option

  • Save Yamonov/eae49222b641d4aa64f76c5e888689ae to your computer and use it in GitHub Desktop.

Select an option

Save Yamonov/eae49222b641d4aa64f76c5e888689ae to your computer and use it in GitHub Desktop.
Finderで選択しているものをBridgeで開くAppleScript

Finderで選択しているフォルダ・ファイルをBridgeで開くAppleScript

app化してFinderツールバーに登録したり、Keyboard Maestroで実行するといい感じです。

try
set myBridge to application id "com.adobe.bridge"
set myBridgeName to name of myBridge
on error
display alert "Adobe Bridgeが見つかりません。"
return
end try
tell application "Finder"
set mySel to selection
if mySel is {} then
try
set myTarget to insertion location as alias
on error
set myTarget to path to desktop
end try
else
set myItem to item 1 of mySel as alias
try
set myItem to original item of myItem as alias
end try
set myTarget to myItem
end if
end tell
set myPathString to POSIX path of myTarget
tell application id "com.adobe.bridge" to activate
do shell script "open -a " & quoted form of myBridgeName & " " & quoted form of myPathString
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment