Welcome to MacForumz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Application Rename

 
   Macintosh computer (Home) -> Tools RSS
Next:  NSBitmapImageRep and colour spaces  
Author Message
linfeld

External


Since: Dec 29, 2004
Posts: 6



(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: 694



(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 ,
Lou Infeld 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: 6



(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" wrote:

> In article ,
> Lou Infeld 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: 694



(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 ,
Lou Infeld 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: 6



(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" wrote:

> In article ,
> Lou Infeld 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)
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 ]