title: Applescript to Duplicate Files using My own application
body: <p>I'm developing a Mac OS X application and in some case it needs to copy a file to <code>/Library/ScriptingAdditions</code>.</p>
  
  <p>And using the code below</p>
  
  <pre><code>tell application "Finder"
       duplicate sourcePath to destinationPath with replacing
  end tell
  </code></pre>
  
  <p>will prompt a dialog saying <code>"Finder" wants to make some changes...</code></p>
  
  <p>I would like to make the dialog saying <code>My Application wants to make some changes....</code></p>
  
  <p>I've read about <a href="https://developer.apple.com/library/mac/documentation/security/conceptual/authorization_concepts/01introduction/introduction.html" rel="nofollow">https://developer.apple.com/library/mac/documentation/security/conceptual/authorization_concepts/01introduction/introduction.html</a></p>
  
  <p>but it doesn't seem to work with AppleScript.</p>