473,406 Members | 2,293 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

File Types Handling by MacOS X and Windows

Hello

I am developing a Java application for MacOS X, Windows and Linux. So
far easy with Java. But when it comes to file types, the
platfrom-specific handling knocks my application-created files out on
a MacOS X.

The idea was to save text files with a specific extension (*.ust) on
all systems. Exchange of files is done by email. I did not register a
specific file type or creator to the MacOS X. When attaching the file
to an email, it is handled like a binary. So what I get is the
resource and data fork of the mac file on another platform, which
can't handle it.

I think association of extensions and Mac file types is done by the
MIME types of the system? My question: How can I programmatically
complete those MIME types with Java? I would also be nice to associate
file extensions with an application on Windows, as the system would
display specific icons with the files. How can I achieve this with
Java?

Best thanks for any hints on this matter
Daniel Frey
Jul 17 '05 #1
1 2456
These are platform/os specific things that are better changed with the
installer for your application.

-Misk

Daniel wrote:
Hello

I am developing a Java application for MacOS X, Windows and Linux. So
far easy with Java. But when it comes to file types, the
platfrom-specific handling knocks my application-created files out on
a MacOS X.

The idea was to save text files with a specific extension (*.ust) on
all systems. Exchange of files is done by email. I did not register a
specific file type or creator to the MacOS X. When attaching the file
to an email, it is handled like a binary. So what I get is the
resource and data fork of the mac file on another platform, which
can't handle it.

I think association of extensions and Mac file types is done by the
MIME types of the system? My question: How can I programmatically
complete those MIME types with Java? I would also be nice to associate
file extensions with an application on Windows, as the system would
display specific icons with the files. How can I achieve this with
Java?

Best thanks for any hints on this matter
Daniel Frey

--
================================================== ======================
Missaka Wijekoon (a.k.a. Misk) mw*******@RemoveThis.villageEdocs.com
Sr. Software Engineer http://www.villageEdocs.com
VillageEdocs
================================================== ======================
Jul 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Javier Vazquez | last post by:
Hi Pardon me for being a newbie, but how do I install JMF on MacOS X? Does anyone know a website with a nice howto? I had no problem installing and running JMF on Windows, because Sun...
9
by: Hans-Joachim Widmaier | last post by:
Hi all. Handling files is an extremely frequent task in programming, so most programming languages have an abstraction of the basic files offered by the underlying operating system. This is...
2
by: donbro | last post by:
If my read of the extension source (Mac/Modules/file/_Filemodule.c) is correct, the parameter sizes specified for data and resource file sizes are UInt32 where they should be UInt64. In both OS9...
29
by: Tola | last post by:
In my case of study, my teacher gave me a project, after I analysed the problem I found that I had to used open the file on the other machine? Please help? Thank you in advance. Tola CHROUK
1
by: Showjumper | last post by:
I have an upload server control and i want to set it up in such a way that allowed file types (extensions) can be specified in a property in the property window. The different files types just...
9
by: wscrsurfdude | last post by:
f = open('myfile,'r') a = f.read(5000) When I do this I get the first 634 bytes. I tried using the: f = open('myfile,'rb') option, but now there are a few 0x0D bytes extra in myfile. 0x0D =...
32
by: Olivier | last post by:
Dear all, I thought the code ----------------------------- pt_fichier_probleme = fopen(nom_fichier, "w"); if(pt_fichier_probleme == NULL){ message_warning_s ("Erreur l'ouverture du...
1
by: laredotornado | last post by:
Hi, I'm using PHP 4.4.4 on Apache 2 on Fedora Core 5. PHP was installed using Apache's apxs and the php library was installed to /usr/local/php. However, when I set my "error_reporting"...
3
by: forest demon | last post by:
for example, let's say I do something like, System.Diagnostics.Process.Start("notepad.exe","sample.txt"); if the user does a SaveAs (in notepad), how can i capture the path that the user...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.