Adding command line options to Dock Shortcuts

Discussion in 'macOS' started by groovyd, May 7, 2017.

  1. groovyd macrumors 65816

    groovyd

    Joined:
    Jun 24, 2013
    Location:
    Atlanta
    #1
    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
     
  2. DeltaMac macrumors 604

    DeltaMac

    Joined:
    Jul 30, 2003
    Location:
    Delaware
    #2
    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.
     
  3. Weaselboy Moderator

    Weaselboy

    Staff Member

    Joined:
    Jan 23, 2005
    Location:
    California
    #3
    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.
     
  4. groovyd thread starter macrumors 65816

    groovyd

    Joined:
    Jun 24, 2013
    Location:
    Atlanta
    #4
    yeah that is what i was trying to avoid... was hoping for some hidden property setting or something like windows does.
    --- Post Merged, May 8, 2017 ---
    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
     
  5. DeltaMac, May 8, 2017
    Last edited: May 8, 2017

    DeltaMac macrumors 604

    DeltaMac

    Joined:
    Jul 30, 2003
    Location:
    Delaware
    #5
    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
     

Share This Page