Avec ce script c'est plus confortable :
try
display dialog "Saisir un nom d’application" default answer "Preview"
set theApp to text returned of result
do shell script "defaults write /Applications/" & theApp & ".app/Contents/Info NSAppleScriptEnabled -bool YES" with administrator privileges
do shell script "chmod a+r /Applications/" & theApp & ".app/Contents/Info.plist" with administrator privileges
do shell script "codesign -f -s - /Applications/" & theApp & ".app" with administrator privileges
end try
Yvan KOENIG (VALLAURIS, France) dimanche 15 avril 2012 23:30:40
_______________________________________________
archives :
http://listes.patpro.net/list/sshfr.fr.html
http://listes.patpro.net/mailman/listinfo/script_shell_fr