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

Re: Xcode 4 AppleScript - create a folder reference (Crashes)


  • Subject: Re: Xcode 4 AppleScript - create a folder reference (Crashes)
  • From: Dmitry Markman <email@hidden>
  • Date: Thu, 14 Jul 2011 07:30:40 -0400

try absolute path, not relative
it looks like anything else just doesn't work
unfortunately bugs related to AppleScript support for Xcode
aren't that important for Apple


On Jul 14, 2011, at 2:46 AM, Shazron Abdullah wrote:

> 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

Dmitry Markman

 _______________________________________________
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

References: 
 >Xcode 4 AppleScript - create a folder reference (Crashes) (From: Shazron Abdullah <email@hidden>)

  • Prev by Date: Xcode 4 AppleScript - create a folder reference (Crashes)
  • Next by Date: Re: Stripping trailing whitespace
  • Previous by thread: Xcode 4 AppleScript - create a folder reference (Crashes)
  • Next by thread: isKindOfClass: fails in the debugger now?
  • Index(es):
    • Date
    • Thread