Skip to content

Instantly share code, notes, and snippets.

@foo9
Last active December 4, 2024 17:45
Show Gist options
  • Save foo9/9543122 to your computer and use it in GitHub Desktop.
Save foo9/9543122 to your computer and use it in GitHub Desktop.
mac mavericks & adobe photoshop cs6 (! you need allow accessibility apps to access.)
-- アプリが起動してない場合
if not application "Adobe Photoshop CS6" is running then
-- 入力ソースをU.S.に切り替える
tell application "System Events" to tell process "SystemUIServer"
tell (menu bar item 1 of menu bar 1 where description is "text input")
click
click menu item "U.S." of menu 1
end tell
end tell
-- アプリ起動
tell application "/Applications/Adobe Photoshop CS6/Adobe Photoshop CS6.app"
activate
end tell
end if
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment