• 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 for XCode fails: error -1728, group can't be accessed
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Applescript for XCode fails: error -1728, group can't be accessed


  • Subject: Applescript for XCode fails: error -1728, group can't be accessed
  • From: Stefan Bender <email@hidden>
  • Date: Mon, 17 May 2010 12:02:35 +0200

Dear list members,

In an attempt to write a script that adds and removes files from an XCode projects I stumbled across a strange error message when trying to add a new group

The following Applescript failed with the error message "Xcode received an error: group id 0867D691FE84028FC02AAC07 of project "mac_utils_xcode\" can't be read number -1728 from group id "0867D691FE84028FC02AAC07" of project "mac_utils_xcode"".

The group ID "0867…" actually is the ID of the root group, I looked it up in project.pbxproj.

The error happened when executing the "make new group" command.


on grouptest()
	tell application "Xcode"
		activate
		set myroot to root group of active project document
		tell myroot
			set newgroup to make new group with properties {name:"newname", path type:project relative}
		end tell
	end tell
end grouptest


Mac OS X 10.6.3, XCode 3.2.1.

is there anything obvious I'm missing? According to my research error code "-1728" means 'Can't get reference', but does this make sense here?

It would be very nice if somebody could give me a hint how to get this script running.

Thanks and best regards,

Stefan Bender
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Applescript for XCode fails: error -1728, group can't be accessed
      • From: Axel Luttgens <email@hidden>
  • Prev by Date: Re: Identifying the frontmost application from a script saved as an application
  • Next by Date: Getting Info from the Finder
  • Previous by thread: Re: Identifying the frontmost application from a script saved as an application
  • Next by thread: Re: Applescript for XCode fails: error -1728, group can't be accessed
  • Index(es):
    • Date
    • Thread