set DefBridge to application id "com.adobe.bridge14"
set nameBridge to name of DefBridge
repeat with i from 1 to 100
tell application "System Events"
if exists application process nameBridge then exit repeat
delay 0.1
end tell
end repeat
tell application "Finder"
try
set myPATH to selection as alias
try
set myPATH to original item of myPATH as alias
end try
on error
set myPATH to insertion location as alias
end try
end tell
tell application "System Events"
tell process nameBridge
reopen
click menu item 1 of menu 1 of menu bar item 3 of menu bar 1
end tell
end tell
return POSIX path of myPATH
POSIX pathが返るのでKeyboard Maestroでopenさせる。
いいかげんバージョンアップでidに番号付けるの止めてほしい……