• 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
Applescript: making many new file references in bulk
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Applescript: making many new file references in bulk


  • Subject: Applescript: making many new file references in bulk
  • From: Dave Dribin <email@hidden>
  • Date: Fri, 10 Nov 2006 09:30:56 -0600

Hi all,

I'm attempting to write an AppleScript to keep a Makefile-based project in sync with an Xcode project. Unfortunately, I need to add more than 1,000 .c files to a target. I've been playing around with parsing the Makefile, and generating an Applescript of the form:

tell application "Xcode"
tell project 1
tell group 1
make new file reference with properties {full path:"/tmp/ file1.c", name:"file1.c"}
.
.
.
make new file reference with properties {full path:"/tmp/ file1000.c", name:"file1000.c"}
end tell
end tell
end tell


The problem is making each new file reference individually is quite slow. Is there any way to create a bunch of file references in bulk to boost performance?

Thanks,

-Dave

_______________________________________________
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: Applescript: making many new file references in bulk
      • From: Rick Ballard <email@hidden>
  • Prev by Date: Re: Question about gcc linking with dependent dynamic libraries
  • Next by Date: Re: moving from GCC 4.0.1 to 4.1/4.2?
  • Previous by thread: Re: Question about gcc linking with dependent dynamic libraries
  • Next by thread: Re: Applescript: making many new file references in bulk
  • Index(es):
    • Date
    • Thread