I am running the following code to attach a DMG file,

    <programArguments>attach "/tmp/InstallerName" -mountpoint "/tmp/mountpoint"</programArguments>

This works fine. However, it does not open the DMG file in window. It gets loaded to the Desktop but does not get opened. How to make it open please?

asked 07 Dec '15, 10:21

Codename%20K's gravatar image

Codename K
accept rate: 50%

You can use the open command to open a folder in Finder - such as:

<runProgram> <program>open</program> <programArguments>"/tmp/mountpoint"</programArguments> <show>0</show> <ruleList> <fileExists> <path>/tmp/InstallerName</path> </fileExists> </ruleList> </runProgram>


answered 08 Dec '15, 05:28

wojciechka's gravatar image

wojciechka ♦♦
accept rate: 26%

Thanks, it worked perfectly.

(08 Dec '15, 09:54) Codename K
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: 07 Dec '15, 10:21

Seen: 490 times

Last updated: 08 Dec '15, 09:54