title: applescript display dialog with custom icon
body: <p>Is there a way to use custom icons with applescript display dialog and notifications? </p>
  
  <p>In the AppleScript documentation it says about the display dialog:</p>
  
  <blockquote>
    <p><code>with icon</code>  (<em>text</em> | <em>integer</em>)<br>
    The resource name or ID of the icon to
    display.  </p>
    
    <p><code>with icon</code>  (<em>stop</em> | <em>note</em> | <em>caution</em>) The type of icon to show.
    You may specify one of the following constants:  </p>
    
    <ul>
    <li>stop (or 0): Shows a stop icon</li>
    <li>note (or 1): Shows the application icon</li>
    <li>caution (or 2): Shows a warning icon, badged with the application icon   </li>
    </ul>
    
    <p><code>with icon</code> (<em>alias</em> | <em>file</em>) An alias or file specifier that specifies a .icns file.</p>
  </blockquote>
  
  <p>So it seams like you can use your own icons, but I cannot get the following code to work.</p>
  
  <pre><code>display dialog "Text" with icon "/Users/user/Desktop/asd.icns"
  </code></pre>
  
  <p>It gets me the following error: "Resource not found."</p>
  
  <p>The goal is to not even use a display dialog, but a display notification instead.</p>