Copying .app file and preserving icon
Ken Ray
kray at sonsothunder.com
Sun Apr 25 22:29:05 EDT 2004
Are you using Panther? If so, this is a known bug in Panther where modifying
some executables cause them to not be able to be launched. I have a routine
that creates apps and renames them, and 50% of the time, the app is useless
under Panther, and the other 50% of the time it works fine (with no code
change).
If you're on Panther, it's an Apple problem, IMHO.
Ken Ray
Sons of Thunder Software
Email: kray at sonsothunder.com
Web Site: http://www.sonsothunder.com/
> -----Original Message-----
> From: use-revolution-bounces at lists.runrev.com
> [mailto:use-revolution-bounces at lists.runrev.com] On Behalf Of
> RGould8 at aol.com
> Sent: Sunday, April 25, 2004 7:57 PM
> To: use-revolution at lists.runrev.com
> Subject: Re: Copying .app file and preserving icon
>
>
> I'm afraid that didn't work for me either - - - it yielded
> the same result
> as revCopyFile and revCopyFolder - - - it did successfully
> copy the file to the
> desktop, but rendered it useless and lost the icon.
> Anyone have luck trying this?
> 1) Make a standalone applescript application
> 2) Paste a custom icon onto it.
> 3) Try copying it to your desktop using revCopyFile,
> revCopyFolder, or the
> undocumented revCopyPackage.
> 4) See if the Applescript application is still usable, and
> see if it still
> contains your icon.
> monte at sweattechnologies.com writes:
>
>
> Try the undocumented but equally useful revCopyPackage command
>
> Cheers
>
> Monte
>
> >I want to have my Revolution application copy a standalone
> .app file
> >from the defaultFolder to the user's desktop in Mac OS X.
> I'm close,
> >but something's up - - - after I copy it using the revCopyFolder
> >command, the app is rendered useless.
> >Basically, the application copies to the desktop (where I wanted
> >it to, but
> >it shows up as a blank text document icon.) It is the correct
> >file size and
> >correct name. It is no longer an app, however, and is
> unusable when you
> >click on it.
> >I'm using the following:
> >put specialFolderPath("desktop") & "/MyProgram.app" into
> destinationplace
> >revCopyFolder "MyProgram.app", destinationplace
> >Not that it should matter, but the .app file is an Applescript
> >"standalone"
> >app.
> >I tried copying this .app using revCopyFile and revCopyFolder (I'm
> >assuming
> >I'd use folder, since .app files are actually folders.)
> >_______________________________________________
> >use-revoltion mailing list
> >use-revolution at lists.runrev.com
> >http://lists.runrev.com/mailman/listinfo/use-revolution
> >
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
More information about the use-livecode
mailing list