Re: Custom icon for bundle?
Re: Custom icon for bundle?
- Subject: Re: Custom icon for bundle?
- From: Steve Checkoway <email@hidden>
- Date: Sat, 10 Jun 2006 20:26:04 -0700
Jim Wintermyre wrote:
This is probably a Stupid Terminal Question (tm), but how do I figure
out what that non-printing character is, and then incorporate it into my
script?
Others answered your other questions, so I won't repeat that. In the
future, if you need to figure out what the character is, I'd just pipe
it through xxd.
$ echo -ne 'Icon\r'|xxd
0000000: 4963 6f6e 0d Icon.
That brings us to the second part, how to incorporate it into your
script. Using the above should work:
file=`echo -ne "/path/to/bundle/blah/Icon\r"`
-n suppresses the newline and -e interprets escapes. I've seen echos
that didn't handle -e (and I can't recall if the BSD one Mac OS X ships
with does) so you could use perl:
$ perl -e "print qq{/path/to/bundle/blah/Icon\r}"
--
Steve Checkoway
_______________________________________________
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