• 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
Re: Custom icon for bundle?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Custom icon for bundle?
      • From: Jim Wintermyre <email@hidden>
References: 
 >Re: Custom icon for bundle? (From: Jim Wintermyre <email@hidden>)

  • Prev by Date: Re: Custom icon for bundle?
  • Next by Date: Re: Xcode 2.3 breaks bundle static object destruction? fuse-cxa-atexit? Help!
  • Previous by thread: Re: Custom icon for bundle?
  • Next by thread: Re: Custom icon for bundle?
  • Index(es):
    • Date
    • Thread