Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Parse a string in a Run Script

Parse a string in a Run Script
Thread Tools
Fresh-Faced Recruit
Join Date: Sep 2009
Status: Offline
Reply With Quote
Sep 2, 2009, 01:24 PM
Does anyone know how to parse a string in a script inside a Run Script target?

In particular, there is an Input Files list below the script. What I want is just the name. It appears that if you place just a name in the list it is accessed with $(SRCROOT) prepended. ie: ~/usr/projects/project/filename.cpp
I access the list with inputFile=`eval echo '$SCRIPT_INPUT_FILE_'$i' which is what gives me the string above.

What I want it just the 'filename'.
Mac Elite
Join Date: Oct 2000
Status: Offline
Reply With Quote
Sep 3, 2009, 10:10 AM
What are you actually trying to do? This post provides absolutely no context. Is this an Automator script or something? Mike Ash's Getting Answers might help.
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Privacy Policy
All times are GMT -4. The time now is 03:21 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,