Passing switches to Xcode 3.1 user scripts

Posted by MyztikJenz on Stack Overflow See other posts from Stack Overflow or by MyztikJenz
Published on 2008-09-06T14:11:38Z Indexed on 2010/04/05 22:03 UTC
Read the original article Hit count: 374

Filed under:
|
|
|

I have a user script that would be much more useful if it could dynamically change some of its execution dependent on what the user wanted. Passing simple switches would easily solve this problem but I don't see any way to do it.

I also tried embedding a keyword in the script name, but Xcode copies the script to a guid-looking filename before execution, so that won't work either.

So does anyone know of a way to call a user script with some sort of argument? (other that the normal %%%var%%% variables)

Thanks!

EDIT: User scripts are accessible via the script menu in Xcode's menubar (between the Window and Help menus). My question is not about "run script" build phase scripts. My apologies for leaving that somewhat ambiguous.

© Stack Overflow or respective owner

Related posts about scripts

Related posts about xcode