Welcome to MacForumz.com!
FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log in/Register/PasswordLog in/Register/Password

Application Rename

 
   Macintosh computer (Home) -> Tools RSS
Related Topics:
help ! PEF Executable using XCODE ?? - A poll with this post was created, to vote and see the results, please visit

Browser Controls... - Are there any browser controls which supports all the versions of MAC OS ? ie : MAC OS X and 8/9 ?? Will Opera Support ?!! rG -- macro Posted via

Beginning for Beginning Beginners - I become motivated to dabble in just to the point of getting a task done, and am wondering where I should start. I am generally more in the ends rather than the means. I want to work with what is

Gentoo for installing Unix programs on Mac OS - I have been slightly in some Unix but haven't fallen into the mood to do the line command dance merely to open them, well build them that is (Although I think I remember using Fink in an earlier version of OS X) Anyone have any..

PackageMaker ignoring files - Please help - Hi Using I have built an install package for a Unix utility which has files that go into inserts the files into the archive, but it does not list them in the bills of materials file. As a..
Next:  Tools: XCode project problem  
Author Message
linfeld

External


Since: Dec 29, 2004
Posts: 13



(Msg. 1) Posted: Wed Apr 18, 2007 10:41 am
Post subject: Application Rename
Archived from groups: comp>sys>mac>programmer>tools (more info?)

I have a Carbon application that was built with Xcode 2.4.1. If I rename
the Application bundle or duplicate it, it will not launch. The message is
"You cannot open the application "X" because it may be damaged or
incomplete". Is there a way of renaming such an application without using
Xcode to rebuild it with a different name?

 >> Stay informed about: Application Rename 
Back to top
Login to vote
David Phillip Oste

External


Since: Apr 25, 2004
Posts: 1081



(Msg. 2) Posted: Wed Apr 18, 2007 7:58 pm
Post subject: Re: Application Rename [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article <C24BA645.DB20%linfeld@mail.com>,
Lou Infeld <linfeld.RemoveThis@mail.com> wrote:

> I have a Carbon application that was built with Xcode 2.4.1. If I rename
> the Application bundle or duplicate it, it will not launch. The message is
> "You cannot open the application "X" because it may be damaged or
> incomplete". Is there a way of renaming such an application without using
> Xcode to rebuild it with a different name?

Hi Lou,

Check your Info.plist file, and the name of the actual compiled code in
side Your.app/Contents/MacOS/ActualBinary

In addition, you'll need to go into the .nib and change any occurrences
of the name that, for example, occur in menu resources.

There are some programs to do it.

 >> Stay informed about: Application Rename 
Back to top
Login to vote
linfeld

External


Since: Dec 29, 2004
Posts: 13



(Msg. 3) Posted: Thu Apr 19, 2007 11:06 am
Post subject: Re: Application Rename [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thanks David but I tried making these changes. Specifically in the
application package, I changed the name of the Unix Executable File in the
MacOS folder and changed the CFBundleIdentifier in Info.plist. These were
the only occurrences of the app name in the package. These changes didn't
work. Do you know why the Duplicate command of the Finder doesn't make the
copy executable?


On 4/18/07 7:58 PM, in article
oster-2B9486.19583618042007 RemoveThis @newsclstr03.news.prodigy.net, "David Phillip
Oster" <oster RemoveThis @ieee.org> wrote:

> In article <C24BA645.DB20%linfeld@mail.com>,
> Lou Infeld <linfeld RemoveThis @mail.com> wrote:
>
>> I have a Carbon application that was built with Xcode 2.4.1. If I rename
>> the Application bundle or duplicate it, it will not launch. The message is
>> "You cannot open the application "X" because it may be damaged or
>> incomplete". Is there a way of renaming such an application without using
>> Xcode to rebuild it with a different name?
>
> Hi Lou,
>
> Check your Info.plist file, and the name of the actual compiled code in
> side Your.app/Contents/MacOS/ActualBinary
>
> In addition, you'll need to go into the .nib and change any occurrences
> of the name that, for example, occur in menu resources.
>
> There are some programs to do it.
 >> Stay informed about: Application Rename 
Back to top
Login to vote
David Phillip Oste

External


Since: Apr 25, 2004
Posts: 1081



(Msg. 4) Posted: Thu Apr 19, 2007 11:06 am
Post subject: Re: Application Rename [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article <C24CC504.DB6C%linfeld@mail.com>,
Lou Infeld <linfeld.TakeThisOut@mail.com> wrote:

> Thanks David but I tried making these changes. Specifically in the
> application package, I changed the name of the Unix Executable File in the
> MacOS folder and changed the CFBundleIdentifier in Info.plist. These were
> the only occurrences of the app name in the package. These changes didn't
> work. Do you know why the Duplicate command of the Finder doesn't make the
> copy executable?

Weird. I was able to reproduce your problem. Did you also rename the
Contents/Resources/XXX.rsrc file in App bundle?

Did you correct the CFBundleName and CFBundleExecutable keys' values?

When I dragged the executable to a Terminal window and executed it
directly, it ran correctly, but the Finder still says it is busted.
Seems like a Finder bug to me.

I haven't tried the old trick of copying it to a removable drive,
ejecting the drive, re-inserting the drive with the option key held
down, then copying from the removable drive back.

I did try relaunching the Finder, and that did not work.
 >> Stay informed about: Application Rename 
Back to top
Login to vote
linfeld

External


Since: Dec 29, 2004
Posts: 13



(Msg. 5) Posted: Thu Apr 19, 2007 12:52 pm
Post subject: Re: Application Rename [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

David, I think you found the problem. I didn't change the name of the
".rsrc" file in the Resources folder in the bundle. When I made that change
in addition to the other two bundle changes, the new app launched correctly.
Thanks again.


On 4/19/07 7:37 AM, in article
oster-8ED076.07374419042007 RemoveThis @newsclstr03.news.prodigy.net, "David Phillip
Oster" <oster RemoveThis @ieee.org> wrote:

> In article <C24CC504.DB6C%linfeld@mail.com>,
> Lou Infeld <linfeld RemoveThis @mail.com> wrote:
>
>> Thanks David but I tried making these changes. Specifically in the
>> application package, I changed the name of the Unix Executable File in the
>> MacOS folder and changed the CFBundleIdentifier in Info.plist. These were
>> the only occurrences of the app name in the package. These changes didn't
>> work. Do you know why the Duplicate command of the Finder doesn't make the
>> copy executable?
>
> Weird. I was able to reproduce your problem. Did you also rename the
> Contents/Resources/XXX.rsrc file in App bundle?
>
> Did you correct the CFBundleName and CFBundleExecutable keys' values?
>
> When I dragged the executable to a Terminal window and executed it
> directly, it ran correctly, but the Finder still says it is busted.
> Seems like a Finder bug to me.
>
> I haven't tried the old trick of copying it to a removable drive,
> ejecting the drive, re-inserting the drive with the option key held
> down, then copying from the removable drive back.
>
> I did try relaunching the Finder, and that did not work.
 >> Stay informed about: Application Rename 
Back to top
Login to vote
Display posts from previous:   
   Macintosh computer (Home) -> Tools All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]