I found this applescript online that should remove finder from the dock on startup if I save it as an application and add it to login items. I go to save it and it says "Expected expression, property or key form, etc. but found unknown token." Can anyone help please? Thank you!
Code:
on run {input, parameters}
tell application System Events to tell UI element Finder of list 1 of process Dock
perform action AXShowMenu
click menu item Remove from Dock of menu 1
end tell
return input
end run