Skip to content

Instantly share code, notes, and snippets.

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 damenleeturks/737c3e74659655ab52349e2bad2c816c to your computer and use it in GitHub Desktop.
Save damenleeturks/737c3e74659655ab52349e2bad2c816c to your computer and use it in GitHub Desktop.
new-folder-with-selection.applescript
on run {input, parameters}
tell application "System Events"
tell process "Finder"
set menuList to name of every menu item of menu "File" of menu bar 1
repeat with itemName in menuList
if itemName contains "New Folder with Selection" then
click menu item itemName of menu "File" of menu bar 1
return
end if
end repeat
end tell
end tell
end run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment