Skip to content

Instantly share code, notes, and snippets.

@ferrous26
Last active December 11, 2015 03:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ferrous26/4536483 to your computer and use it in GitHub Desktop.
Save ferrous26/4536483 to your computer and use it in GitHub Desktop.
finder = AX::Application.finder
dock = AX::Application.dock
click dock.application_dock_item(title:"Finder")
sleep 2
type "\\SHIFT+\\COMMAND+\\G"
type "~"
click finder.window.button(id: "_NS:48")
click finder.window.radio_button(description: "icon view")
right_click finder.window.image(title: "Applications") do
findermenu = finder.standard_window.menu
findermenu.select_menu_item menu.item(title:"Share")
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment