Created
April 7, 2020 22:26
-
-
Save damenleeturks/737c3e74659655ab52349e2bad2c816c to your computer and use it in GitHub Desktop.
new-folder-with-selection.applescript
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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