Starting KLayout with command line options from the launching pad on Mac OS X

edited May 2013 in General
Hi,

I'm a real novice at Mac.

I have installed "klayout-0.22.6.pkg" to Mac OS X (Mountain Lion),
which can start normally from the launching pad.
Thank you for providing the convenient binary package.

I'd like to make a change to start the tool with "-style=cleanlooks -e"
command line options as I do on Windows and Linux.

It would be better if two icons (non-editing mode and editing mode) are
created on the launching pad at installation.


Can anybody give suggestion?
Thanks.

Comments

  • edited November -1

    Hi,

    I am as much novice as you are. Lacking Mac hardware (and given the non-profit nature of the project not willing to purchase one for the sole reason of supporting it), I myself don't use MacOS or develop on it. The binary packages are welcomed contributions from other users which I forward to the community.

    Anybody who is able to give a solution for that request?

    Regards,

    Matthias

  • edited November -1
    Hi,

    I could make a small progress regarding this issue.
    The solution may not be a perfect one, however,
    I could make two klayout launching icons
    (one for editor mode; another for viewer mode)
    in the Launchpad by running the command below:
    $ ./createIcons.sh

    The "editor mode" will have "cleanlooks" style;
    the "viewer mode", "motif" style.

    I will send a ZIP file containing the relevant
    Bash script files to the "Contact" address.
    I will be happy if Mac experts can comment on this.

    Regards
    Kazzz
  • edited November -1

    Hi,

    I have made the .zip archive available on the server here: http://178.77.72.242/downloads/klayout-Icons-OSX.zip.

    Thanks to Kazzz for providing it. If there is an enhancement, let me know. I'll update it then.

    Regards,

    Matthias

  • Hi,

    I use KLayout 0.27.13 on MacOS and need to edit files. When I 2-click on a GDS file, KLayout opens, but I cannot edit the file. Solutions attempted:

    • menu: KLayout > Preferences > Editing Mode > check: Use editing mode by default > restart KLayout
      This might have worked.

    Also, the link http://178.77.72.242/downloads/klayout-Icons-OSX.zip does not seem to work. "The requested URL was not found on this server."

    Scott

  • Hi Scott,

    If you wish to and can make the edit mode default, as you pointed out,

    • menu: KLayout > Preferences > Editing Mode > check: Use editing mode by default > restart KLayout

    is the right way.

    Regarding the server issue, I get the same access error as you.
    I believe the server is already down after a long gap.
    Fortunately, my first Mac, the mid-2012 model with Yosemite, is still functioning :) , and I could find the mail with the ZIP file I sent to Matthias.

    Seeing the ZIP file contents, I could recall my intentions.
    The primary motivation was to have two different KLayout launchers, application bundles (*.app), with:

    • (1) Viewer Mode (-ne option is passed to KLayout)
    • (2) Editor Mode (-e option is passed to KLayout)

    I wanted (1) to avoid accidental changes in a design while viewing as a design reviewer.
    More often, I worked as a designer; hence I needed (2).

    If you have a similar motivation as me, you should not take the step at the top.
    Instead, you need to create two specialized application bundles.

    I could attach the old ZIP file. However, I wouldn't do so.
    A much better way is to create such an application bundle with the help of the Automator.app tool.
    You can find the instruction here.

    The workaround also addresses an issue when the file path contains non-ASCII characters.

    For your information, I've started building the latest 0.28.2 after Matthias fixed some issues found on Mac.
    The new release will contain such an application bundle as an example and be available by the end of this year.

    Kazzz-S

Sign In or Register to comment.