Thank you for being a valued part of the CNET community. As of December 1, 2020, the forums are in read-only format. In early 2021, CNET Forums will no longer be available. We are grateful for the participation and advice you have provided to one another over the years.

Thanks,

CNET Support

General discussion

Mac .APP Question

Jun 4, 2009 3:34AM PDT

Greetings, we have an application that is created on a PC, it burns PDF files (with a viewer) to CD, these are then sent to PC and Mac users. All PC users can view the CD no problem, on 50 percent of the Mac machines the application works perfect, on the remaining 50 percent, the user receives the following error - The JAVA JAE file "DVDPDFViewer.jar" could not be launched. The program was written to work on OS X.4 and newer, all machines tested are running the same version of OS and Java.

The work around for this appears to be opening a terminal window on the Mac, running a three line script, then launching the application again.

So, the problem I now have is that I write the script (.app) on the Mac, and it executes and runs fine, I copy it to a PC for burning onto a CD with all of the other documents from the program and when I launch it on a Mac from the CD, it does not work. I assume that when I copied it to the PC from the Mac (thumb drive, e-mail and .zip have been tried)that the .app file is losing something, perhaps attributes, in the translation. Does anyone have any ideas on how to resolve this?

Thanks,
Mark

Discussion is locked

- Collapse -
No answer, but
Jun 4, 2009 6:53AM PDT

While I applaud your efforts in trying to create a cross platform application, isn't this kinda like reinventing the wheel?

Given that Mac's can read, and create, PDF files without the aid of additional software, it would seem to be just a programming exercise.
JMO.

Have you tried skipping the "copy to a PC for burning on a CD" step and burned the CD on the Mac using something like Toast that will create a PC/Mac CD?

P

- Collapse -
mac .app question
Jun 4, 2009 7:04AM PDT

mrmacfixit,

Thanks for getting back to me, the burner application is .net intel based, this program first generates reports from content in MS-SQL databases, converts these reports to PDF and then encrypts them prior to copying onto the CD. the option to burn these from a Mac is not available to me.

Thanks,
Mark

- Collapse -
Ahh,
Jun 4, 2009 9:07AM PDT

perhaps Bob P could supply an answer for you.

No doubt he will be along shortly

P

- Collapse -
Yes, I've read it.
Jun 4, 2009 11:32AM PDT

But as a programmer I would view this as a job where you interview the customer, scope out the task and present an estimate. I don't see this cured with a one line "do this."
Bob

- Collapse -
Proper extension for a script
Jul 28, 2009 11:59PM PDT

If you're talking about a UNIX shell script, you wouldn't normally use .app for the extension, though I wouldn't be surprised if it works. It should either be .sh or .command. The .app extension is expected to be for an application package. In other words, it's essentially an executable folder rather than an executable file.