AuthorizationMBS help needed

I am trying to pseudo codesign an app using AuthorizationMBS.
The terminal command is :
codesign -s - PathToFile

Sadly I get an error -600031 - Which is "The specified program could not be executed. "

Any pointers to get this to work?

var f as FolderItem
f = SpecialFolder.Desktop.child("test.app")
dim s(-1) as String
s.add "-s"
s.add "-"
s.Add (ConvertEncoding( f.UnixpathMBS,Encodings.UTF8))
try
  Author.Execute("/bin/codesign",s ,true) // and run it
  if Author.LastError<>0 then
  else
    Author.MakeStreamAsyncron
  end if
  Author.Execute("/bin/codesign",s,true)
catch
end

Got it working. It needs to be

Author.Execute("usr/bin/codesign",s ,true)

1 Like