• 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 Organizer actions and %%% variables
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Xcode Organizer actions and %%% variables


  • Subject: Xcode Organizer actions and %%% variables
  • From: Robert Stainsby <email@hidden>
  • Date: Wed, 23 Jan 2008 18:17:52 +1100

I have been experimenting with Xcode 3.0's Organizer actions. It seems the "%%%...%%%" script variables used elsewhere in Xcode are resolved in shell script actions created under the Action toolbar item, but not the Run item.

The script editors are different depending on which toolbar item is used. After experimenting with the .xccommands files created by exporting the actions, it seems the "type" attribute determines whether or not the variables are resolved.

With the sample .xccommands file below, the first script works fine, but the second fails with an error of the form 'Task not found at path: ..."%%%{PBXFilePath}%%%"'. I have experimented with the "directory" setting in the editor and that doesn't seem to be causing the difference.

If no-one can point out something I'm missing, I'll file a bug.

Background:
http://developer.apple.com/releasenotes/DeveloperTools/RN-Xcode/
http://developer.apple.com/documentation/DeveloperTools/Conceptual/XcodeUserGuide/Contents/Resources/en.lproj/07_03_custom_scripts/chapter_51_section_4.html

Exported .xccommands file:
// !$*UTF8*$!
{
	commands = (
		{
			directory = .;
			name = "Run Selected Python Script";
			script = "#!/bin/sh\n\npythonw \"%%%{PBXFilePath}%%%\"";
			type = other;
		},
		{
			arguments = "";
			directory = selection;
			name = "Bad Python Run";
			script = "#!/bin/sh\n\npythonw \"%%%{PBXFilePath}%%%\"";
			type = run;
		},
	);
}

======================================
Robert Stainsby
Melbourne, Australia

Email; Video, voice & text chat (iChat AV/AOL IM): email@hidden
http://web.mac.com/rjsdev/


_______________________________________________ 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
  • Prev by Date: Re: Missing file or directory: No kidding, I just removed it!
  • Next by Date: Question about Leopard's gcc -M* compiler directive defaults (which weren't apparently present with Tiger's gcc).
  • Previous by thread: Boost Thread Linking error in Xcode 3.0
  • Next by thread: Question about Leopard's gcc -M* compiler directive defaults (which weren't apparently present with Tiger's gcc).
  • Index(es):
    • Date
    • Thread