Search code examples
xcodeapplescriptfile-format

What kind of files are valid Xcode behavior scripts?


I'm trying to set up an Applescript as a behavior in Xcode 4, but Xcode won't allow me to select my script. What kind of file is a valid script for Xcode? I've tried .applescript, .scpt, and .txt. I've also tried no extension at all.

What do I need to do?


Solution

  • This is what I get for neglecting to read the documentation on creating a new behavior. (iOS developer login required.)

    It turns out that Xcode can accept an executable file as a script. The solution was to run chmod +x on the script file and then Xcode allowed me to select it. It's funny, because I wasn't aware that Finder allowed filtering based on chmod permissions.