Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

groovyd

Suspended
Original poster
Jun 24, 2013
1,227
621
Atlanta
Is there any easy way to add command line options to dock shortcuts without having to edit package contents and add scripts etc. ? I want something that persists through app updates
 
By "command line option", do you want to add more items to the drop down menu when you right-click on a dock icon?
(I'm not quite sure what you mean by that!)
Can you give us an example or two of what you would like to do?

I doubt that an app update will have any affect on an icon in the dock. Of course, if you use particular options that might not continue to be allowed, because of an update to an app, that would be something that you would need to question the app developer, or online support forums for that app.
 
Is there any easy way to add command line options to dock shortcuts without having to edit package contents and add scripts etc. ? I want something that persists through app updates
You could use AppleScript to make an app that consists of a command that launches the app along with any options, then put the AppleScript app in the Dock instead of the underlying app.
 
  • Like
Reactions: CoastalOR
You could use AppleScript to make an app that consists of a command that launches the app along with any options, then put the AppleScript app in the Dock instead of the underlying app.

yeah that is what i was trying to avoid... was hoping for some hidden property setting or something like windows does.
[doublepost=1494301933][/doublepost]
By "command line option", do you want to add more items to the drop down menu when you right-click on a dock icon?
(I'm not quite sure what you mean by that!)
Can you give us an example or two of what you would like to do?

I doubt that an app update will have any affect on an icon in the dock. Of course, if you use particular options that might not continue to be allowed, because of an update to an app, that would be something that you would need to question the app developer, or online support forums for that app.

i just want to run the app with some command line options pre-defined like how you can do in windows by setting shortcut properties. for example i want to run filezilla with --site=whatever.com always
 
I think Weaselboy has a good tip for you to use.
Keep in mind that macOS is not like Windows, so some tasks that you want will often require different approaches, but there's users on this site that will help you, if you need that help.

Should be simple to set up an AppleScript app that does what you need
 
Last edited:
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.