• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Using AppleScript to access a Copy File Phase in an Xcode project
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using AppleScript to access a Copy File Phase in an Xcode project


  • Subject: Re: Using AppleScript to access a Copy File Phase in an Xcode project
  • From: Gouri jonnalagadda <email@hidden>
  • Date: Wed, 21 Sep 2005 10:03:36 -0700


On Sep 21, 2005, at 9:07 AM, Dave McCaldon wrote:


I can actually determine what I need from the destination directory and path of the cfbp elements.

Thanks for the info on properties of, that's exactly what I've been looking for!

Now I need to find out how to insert a new cfbp element!


I am not sure if this is what you are looking for, but here are some pointers which might help you.  This is only supported in Xcode 2.1 though...:

- If  you are trying to copy a file from within the project into the copy files build phase of a target, then the following  should work:
tell application "Xcode"
    tell project "cocoTargetSuiteTest"
        add file reference "main.m" to build phase 1 of target 1
        get name of every build file of build phase 1 of target 1
    end tell
end tell

- Presently you CANNOT add a file to a build phase unless it is present in the project.

- To add a file to a project from another location something like this should work:
set test to (choose file)
set testPath to POSIX file (POSIX path of test)
tell application "Xcode"
    tell project 1
        tell group "resources"
            make new file reference with properties {full path:POSIX path of test, name:name of (info for testPath)}
        end tell
    end tell
end tell


Gouri




 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Using AppleScript to access a Copy File Phase in an Xcode project
      • From: Dave McCaldon <email@hidden>
References: 
 >Using AppleScript to access a Copy File Phase in an Xcode project (From: Dave McCaldon <email@hidden>)
 >Re: Using AppleScript to access a Copy File Phase in an Xcode project (From: Daniel Jalkut <email@hidden>)
 >Re: Using AppleScript to access a Copy File Phase in an Xcode project (From: Dave McCaldon <email@hidden>)

  • Prev by Date: Re: Xcode Help "Full-Text Search" Completely Broken
  • Next by Date: Re: Xcode Help "Full-Text Search" Completely Broken
  • Previous by thread: Re: Using AppleScript to access a Copy File Phase in an Xcode project
  • Next by thread: Re: Using AppleScript to access a Copy File Phase in an Xcode project
  • Index(es):
    • Date
    • Thread