Adding command line options to Dock Shortcuts

groovyd

Suspended
Original poster
Jun 24, 2013
1,230
616
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
 

DeltaMac

macrumors G3
Jul 30, 2003
9,537
2,304
Delaware
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.
 

Weaselboy

Moderator
Staff member
Jan 23, 2005
29,180
8,833
California
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

groovyd

Suspended
Original poster
Jun 24, 2013
1,230
616
Atlanta
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
 

DeltaMac

macrumors G3
Jul 30, 2003
9,537
2,304
Delaware
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: