I don’t know the path to the script, but for the file you can see a list of all targets with the specified targets, and you can check or unmark the targets from this list.
Open the Utilities panel and select File Inspector. Then select the file, and the corresponding targets will be in the target membership area of the file inspector.
You can even select multiple files and targets that are associated with some, but not all selected files will be marked with a “-”. If you check the target, all selected files will be added to this target.
source share