Currently Being ModeratedJan 25, 2013 7:16 PM (in response to MacOSXNoob)
The dialog says the Finder wants to make the change because that is who you are asking to make the change. You could use a do shell script command instead of the Finder statements - for example, the following makes a copy directly to the destination:
do shell script "cp " & (quoted form of POSIX path of EmptyTrashIcon) & space & "/System/Library/CoreServices/Dock.app/Contents/Resources/trashempty.png" with administrator privileges
Currently Being ModeratedJan 25, 2013 8:11 PM (in response to red_menace)
Thanks! That did the trick! But is there a way to make my app's icon appear when it displays the password dialog. The icon is the normal lock but instead of the icon it is the generic blank page
Currently Being ModeratedJan 26, 2013 7:36 AM (in response to MacOSXNoob)
I think you would be looking at using Authorization Services, which is way more complicated than do shell script.