• 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
Xcode 4 AppleScript - create a folder reference (Crashes)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Xcode 4 AppleScript - create a folder reference (Crashes)


  • Subject: Xcode 4 AppleScript - create a folder reference (Crashes)
  • From: Shazron Abdullah <email@hidden>
  • Date: Wed, 13 Jul 2011 23:46:11 -0700

Is AppleScript support in Xcode 4 in flux?

The script below tries to create a "folder reference" (blue folder) which exists under the current project folder, as a relative reference.
It "works" if you keep hitting "Continue" after the Xcode 4 crash and change the "Location" of the reference to "Relative to Project" (in the File Inspector).  You need the Xcode project loaded already to run the script. Any glaring errors?

----------------------------
tell application "Xcode"
   activate
   delay 1
   -- making a new group works (as a test)...
   -- make new group with properties {name:"Foosa", path type:project relative, path:"afsa"} at beginning
   tell root group of front project
       -- this will crash Xcode 4, but if you "Continue" long enough it will create something, then if you go into the File Inspector and...
       -- ... set it's location to "Relative to Project", it works! But I can't get past the crash (yet)
       make new file reference with properties {name:"www", path type:project relative, full path:"www"}
   end tell
end tell _______________________________________________
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: Xcode 4 AppleScript - create a folder reference (Crashes)
      • From: Dmitry Markman <email@hidden>
  • Prev by Date: Re: new crash in Xcode 4
  • Next by Date: Re: Xcode 4 AppleScript - create a folder reference (Crashes)
  • Previous by thread: RE: Code Signing AFTER Copy Phases
  • Next by thread: Re: Xcode 4 AppleScript - create a folder reference (Crashes)
  • Index(es):
    • Date
    • Thread