LoginSignup
2
2

Finderで選択しているフォルダ・ファイルを2022以降のAdobe Bridgeに開かせるAppleScript

Posted at
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に番号付けるの止めてほしい……

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2