Saving AppleScript in .AppleScript vs . scpt

.AppleScript vs . scpt

So I wanted to see what everyone’s are thoughts and what are the best practices for this.

.AppleScript vs . scpt
Both

  • so essentially the first is a text file while the second is a compiled binary.
  • Both can run the AppleScript code
    scpt
  • supposed runs AppleScript faster (can’t really tell speed)
    .AppleScript
  • is searchable through the finder

those are at the high level the changes I’ve found.

?

  • which version do you use? .AppleScript or . scpt and why do you prefer?

Is there any best practices between the two when to use them?

Usually if I’m just prototyping a script and running it in SD I’ll save it as AppleScript until I’m ready to use it externally, then I’ll do save as…. script / script bundle or app.

I’m not 100% sure but I think if your require any “permissions” when you run them externally, The can not be in AppleScript format.

Most stuff I’m doing now is in Xcode but I’m still using some AppleScripts, which I’m calling from Obj-C using Bridging Headers. And loading the scripts at runtime. Those I’m keeping in AppleScript format. Granting permissions to the main app.