Skip to main content
deleted 41 characters in body
Source Link
wch1zpink
  • 7.7k
  • 17
  • 34

Paste this following AppleScript code into a new Script Editor.app document. Running the code in Script Editor will take all of the currently selected folders in the frontmost Finder window and re-name the selected folders by removing the date and parentheses from the beginning to the end of the folder name.

NOTE: If any of the selected folders' names in Finder don't start with a "(", or any of the selected items is not a folder... then the script won't rename that item.

tell application "Finder" to set theFolders to selection as alias list

tell application "System Events"
    repeat with i in theFolders
        if name of i starts with "(" then if kind of i = "Folder" then
            set originalName to name of i
            tell current application
              me to set newName to (characters 8 thru -1 of originalName) ¬
                    & space & characters 1 thru 6 of originalName as string
            end tell
            set name of i to newName
        end if
    end repeat
end tell

After testing this code a few times on some currently selected folders in the frontmost Finder window, and you are happy with the results... You can create a new Automator Quick Action and add a Run AppleScript command and insert the above code to it. Then save your new Automator Quick Action.

enter image description here

After you save your new Automator Quick Action, it will be available to use in Finder when you right click on the selected folders, in the Quick Actions menu. You will also be able to assign a keyboard shortcut in System Preferences to run the Quick Action on selected folders in Finder.

enter image description here

Paste this following AppleScript code into a new Script Editor.app document. Running the code in Script Editor will take all of the currently selected folders in the frontmost Finder window and re-name the selected folders by removing the date and parentheses from the beginning to the end of the folder name.

NOTE: If any of the selected folders' names in Finder don't start with a "(", or any of the selected items is not a folder... then the script won't rename that item.

tell application "Finder" to set theFolders to selection as alias list

tell application "System Events"
    repeat with i in theFolders
        if name of i starts with "(" then if kind of i = "Folder" then
            set originalName to name of i
            tell current application
                set newName to (characters 8 thru -1 of originalName) ¬
                    & space & characters 1 thru 6 of originalName as string
            end tell
            set name of i to newName
        end if
    end repeat
end tell

After testing this code a few times on some currently selected folders in the frontmost Finder window, and you are happy with the results... You can create a new Automator Quick Action and add a Run AppleScript command and insert the above code to it. Then save your new Automator Quick Action.

enter image description here

After you save your new Automator Quick Action, it will be available to use in Finder when you right click on the selected folders, in the Quick Actions menu. You will also be able to assign a keyboard shortcut in System Preferences to run the Quick Action on selected folders in Finder.

enter image description here

Paste this following AppleScript code into a new Script Editor.app document. Running the code in Script Editor will take all of the currently selected folders in the frontmost Finder window and re-name the selected folders by removing the date and parentheses from the beginning to the end of the folder name.

NOTE: If any of the selected folders' names in Finder don't start with a "(", or any of the selected items is not a folder... then the script won't rename that item.

tell application "Finder" to set theFolders to selection as alias list

tell application "System Events"
    repeat with i in theFolders
        if name of i starts with "(" then if kind of i = "Folder" then
            set originalName to name of i
            tell me to set newName to (characters 8 thru -1 of originalName) ¬
                & space & characters 1 thru 6 of originalName as string
            set name of i to newName
        end if
    end repeat
end tell

After testing this code a few times on some currently selected folders in the frontmost Finder window, and you are happy with the results... You can create a new Automator Quick Action and add a Run AppleScript command and insert the above code to it. Then save your new Automator Quick Action.

enter image description here

After you save your new Automator Quick Action, it will be available to use in Finder when you right click on the selected folders, in the Quick Actions menu. You will also be able to assign a keyboard shortcut in System Preferences to run the Quick Action on selected folders in Finder.

enter image description here

added 87 characters in body
Source Link
wch1zpink
  • 7.7k
  • 17
  • 34

Paste this following AppleScript code into a new Script Editor.app document. Running the code in Script Editor will take all of the currently selected folders in the frontmost Finder window and re-name the selected folders by removing the date and parentheses from the beginning to the end of the folder name.

NOTE: If any of the selected folders' names in Finder don't start with a "(", or any of the selected items is not a folder... then the script won't rename that item.

tell application "Finder" to set theFolders to selection as alias list

tell application "System Events"
    repeat with i in theFolders
        if name of i starts with "(" then if kind of i = "Folder" then
            set originalName to name of i
            tell current application
                set newName to (characters 8 thru -1 of originalName) ¬
                    & space & characters 1 thru 6 of originalName as string
            end tell
            set name of i to newName
        end if
    end repeat
end tell

After testing this code a few times on some currently selected folders in the frontmost Finder window, and you are happy with the results... You can create a new Automator Quick Action and add a Run AppleScript command and insert the above code to it. Then save your new Automator Quick Action.

enter image description here

After you save your new Automator Quick Action, it will be available to use in Finder when you right click on the selected folders, in the Quick Actions menu. You will also be able to assign a keyboard shortcut in System Preferences to run the Quick Action on selected folders in Finder.

enter image description here

Paste this following AppleScript code into a new Script Editor.app document. Running the code in Script Editor will take all of the currently selected folders in the frontmost Finder window and re-name the selected folders by removing the date and parentheses from the beginning to the end of the folder name.

NOTE: If any of the selected folders' names in Finder don't start with a "(", or any of the selected items is not a folder... then the script won't rename that item.

tell application "Finder" to set theFolders to selection as alias list

tell application "System Events"
    repeat with i in theFolders
        if name of i starts with "(" then if kind of i = "Folder" then
            set originalName to name of i
            tell current application
                set newName to (characters 8 thru -1 of originalName) ¬
                    & space & characters 1 thru 6 of originalName as string
            end tell
            set name of i to newName
        end if
    end repeat
end tell

After testing this code a few times on some currently selected folders in the frontmost Finder window, and you are happy with the results... You can create a new Automator Quick Action and add a Run AppleScript command and insert the above code to it. Then save your new Automator Quick Action.

enter image description here

After you save your new Automator Quick Action, it will be available to use in Finder when you right click on the selected folders, in the Quick Actions menu. You will also be able to assign a keyboard shortcut in System Preferences to run the Quick Action on selected folders in Finder.

Paste this following AppleScript code into a new Script Editor.app document. Running the code in Script Editor will take all of the currently selected folders in the frontmost Finder window and re-name the selected folders by removing the date and parentheses from the beginning to the end of the folder name.

NOTE: If any of the selected folders' names in Finder don't start with a "(", or any of the selected items is not a folder... then the script won't rename that item.

tell application "Finder" to set theFolders to selection as alias list

tell application "System Events"
    repeat with i in theFolders
        if name of i starts with "(" then if kind of i = "Folder" then
            set originalName to name of i
            tell current application
                set newName to (characters 8 thru -1 of originalName) ¬
                    & space & characters 1 thru 6 of originalName as string
            end tell
            set name of i to newName
        end if
    end repeat
end tell

After testing this code a few times on some currently selected folders in the frontmost Finder window, and you are happy with the results... You can create a new Automator Quick Action and add a Run AppleScript command and insert the above code to it. Then save your new Automator Quick Action.

enter image description here

After you save your new Automator Quick Action, it will be available to use in Finder when you right click on the selected folders, in the Quick Actions menu. You will also be able to assign a keyboard shortcut in System Preferences to run the Quick Action on selected folders in Finder.

enter image description here

added 77 characters in body
Source Link
wch1zpink
  • 7.7k
  • 17
  • 34

Paste this following AppleScript code into a new Script Editor.app document. Running the code in Script Editor will take all of the currently selected folders in the frontmost Finder window and re-name the selected folders by removing the date and parentheses from the beginning to the end of the folder name.

NOTE: If any of the selected folders' names in Finder don't start with a "(", or any of the selected items is not a folder... then the script won't rename that item.

tell application "Finder" to set theFolders to selection as alias list

tell application "System Events"
    repeat with i in theFolders
        if name of i starts with "(" then if kind of i = "Folder" then
            set originalName to name of i
            tell current application
                set newName to (characters 8 thru -1 of originalName) ¬
                    & space & characters 1 thru 6 of originalName as string
            end tell
            set name of i to newName
        end if
    end repeat
end tell

After testing this code a few times on some currently selected folders in the frontmost Finder window, and you are happy with the results... You can create a new Automator Quick Action and add a Run AppleScript command and insert the above code to it. Then save your new Automator Quick Action.

enter image description here

After you save your new Automator Quick Action, it will be available to use in Finder when you right click on the selected folders, in the Quick Actions menu. You will also be able to assign a keyboard shortcut in System Preferences to run the Quick Action on selected folders in Finder.

Paste this following AppleScript code into a new Script Editor.app document. Running the code in Script Editor will take all of the currently selected folders in the frontmost Finder window and re-name the selected folders by removing the date and parentheses from the beginning to the end of the folder name.

NOTE: If any of the selected folders' names in Finder don't start with a "(", then the script won't rename that item.

tell application "Finder" to set theFolders to selection as alias list

tell application "System Events"
    repeat with i in theFolders
        if name of i starts with "(" then
            set originalName to name of i
            tell current application
                set newName to (characters 8 thru -1 of originalName) ¬
                    & space & characters 1 thru 6 of originalName as string
            end tell
            set name of i to newName
        end if
    end repeat
end tell

After testing this code a few times on some currently selected folders in the frontmost Finder window, and you are happy with the results... You can create a new Automator Quick Action and add a Run AppleScript command and insert the above code to it. Then save your new Automator Quick Action.

enter image description here

After you save your new Automator Quick Action, it will be available to use in Finder when you right click on the selected folders, in the Quick Actions menu. You will also be able to assign a keyboard shortcut in System Preferences to run the Quick Action on selected folders in Finder.

Paste this following AppleScript code into a new Script Editor.app document. Running the code in Script Editor will take all of the currently selected folders in the frontmost Finder window and re-name the selected folders by removing the date and parentheses from the beginning to the end of the folder name.

NOTE: If any of the selected folders' names in Finder don't start with a "(", or any of the selected items is not a folder... then the script won't rename that item.

tell application "Finder" to set theFolders to selection as alias list

tell application "System Events"
    repeat with i in theFolders
        if name of i starts with "(" then if kind of i = "Folder" then
            set originalName to name of i
            tell current application
                set newName to (characters 8 thru -1 of originalName) ¬
                    & space & characters 1 thru 6 of originalName as string
            end tell
            set name of i to newName
        end if
    end repeat
end tell

After testing this code a few times on some currently selected folders in the frontmost Finder window, and you are happy with the results... You can create a new Automator Quick Action and add a Run AppleScript command and insert the above code to it. Then save your new Automator Quick Action.

enter image description here

After you save your new Automator Quick Action, it will be available to use in Finder when you right click on the selected folders, in the Quick Actions menu. You will also be able to assign a keyboard shortcut in System Preferences to run the Quick Action on selected folders in Finder.

Post Undeleted by wch1zpink
deleted 404 characters in body
Source Link
wch1zpink
  • 7.7k
  • 17
  • 34
Loading
Post Deleted by wch1zpink
Source Link
wch1zpink
  • 7.7k
  • 17
  • 34
Loading