Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 271
Moshe Avatar asked Aug 23 '13 14:08

Moshe


1 Answers

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.

like image 80
Moshe Avatar answered Sep 28 '22 20:09

Moshe