Xcode 4 AppleScript - create a folder reference (Crashes)
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