image
image

Go Back   macosx.com > Design, Media, Programming & Scripting > Design & Media

Reply
 
Thread Tools
  #1  
Old July 30th, 2008, 12:26 PM
Greg_Reez's Avatar
Creatively Speaking
 
Join Date: Jun 2008
Location: Northern California
Posts: 35
Thanks: 0
Thanked 1 Time in 1 Post
Greg_Reez is on a distinguished road
What is a Unix Executable File? Why is it doing this?

From time to time when I recieve files from clients, my mac calls them a kind of file called a Unix Executable File. When I look at the kind of file in Finder or "Get Info", it says its a Unix Executable file. Most of the time I know exactly what kind of file it is, a font file, psd, ai, even a jpeg, so I can go to the program and choose File>Open.

From time-to-time I'm unsure what format the file is, so I can't necessarily go to the program and do a File>Open. I sound "incapable" when I go back to a client and asked them what format the file is in. I included a pic of my latest problem.

I received a Quark file from a client and the Quark file as well as the packaged fonts and some photos are coming back as Unix Executable Files... I didn't have quarkxpress so I had to go back to my client and ask what type of file it was... I hate doing that.

Whats going on?
Attached Images
File Type: jpg UEF.jpg (67.7 KB, 5 views)
Reply With Quote
  #2  
Old July 30th, 2008, 02:25 PM
ElDiabloConCaca's Avatar
U.S.D.A. Prime
 
Join Date: Aug 2001
Location: San Antonio, Texas
Posts: 10,377
Thanks: 3
Thanked 124 Times in 113 Posts
ElDiabloConCaca is a jewel in the roughElDiabloConCaca is a jewel in the roughElDiabloConCaca is a jewel in the rough
What's happening is that Mac OS X can't read the file's resource fork (and, since there's no extension on those files either, it can't even "guess"), and therefore doesn't know what the file is. This doesn't happen with files with extensions most of the time, because even if a Word document lost its resource fork (type/creator codes, specifically) information, it could still use the .doc extension to associate the file with Word.

One of two things happened:

1) The files originated from a Windows machine (or some non-Apple operating system) and no extension was put on the file. Windows machines know nothing of reading/writing Mac-compatible resource forks.

2) The files originated on a Mac, but were either transferred with a protocol or compressed with a program that ignores or strips files of that resource fork information.

There's not much you can do to get around the problem without teaching the clients new tricks. They should use a compression (.zip usually works) that preserves resource fork information, or store the files on a file system that retains this information (MS-DOS format = yuck for resource forks... FAT32, NTFS both seem to do ok with it most times).

How did these files specifically come to you? How were they transferred? Had they been compressed? If you can describe (in detail) the route they took from hard drive to hard drive, CD to CD, network to network, we may be able to pinpoint where, exactly, the resource fork info was lost and find a workaround.
__________________
Power Macintosh G4/500MHz "Yikes!" 10.4.11 Server • 1024MB • 3 x 120GB + 320GB • DVR-111D • 2 x Radeon 7000 PCI • 2 x 17" CRT
MacBook 2.0GHz Core 2 Duo - White 10.5.5 • 2048MB • 80GB • CD-RW/DVD-ROM
iPod Photo 60GB • iPod nano 1GB • AT&T DSL 6Mb/768k
http://www.jeffhoppe.com
Reply With Quote
  #3  
Old July 30th, 2008, 02:58 PM
Greg_Reez's Avatar
Creatively Speaking
 
Join Date: Jun 2008
Location: Northern California
Posts: 35
Thanks: 0
Thanked 1 Time in 1 Post
Greg_Reez is on a distinguished road
Quote:
How did these files specifically come to you? How were they transferred? Had they been compressed? If you can describe (in detail) the route they took from hard drive to hard drive, CD to CD, network to network, we may be able to pinpoint where, exactly, the resource fork info was lost and find a workaround.
These particular files came to me through email, in a zipped folder, and I downloaded them to my desktop, then extracted them. They typically come from the sender, to my entourage inbox, or my web browser mail. There isn't exactly a lot of detail involved that I can give you. And they aren't always zipped files. If it is a jpeg, and I know it is a jpeg, but it doesn't have a file extension included, I can add the jpeg extension and it'll open up fine when double-clicked on.

At least I have an "idea" of whats happening, this time is a little more frustrating than most since they are font files and I can't install them to view the client's file properly.
Reply With Quote
  #4  
Old July 31st, 2008, 03:24 PM
Registered User
 
Join Date: Mar 2005
Posts: 209
Thanks: 0
Thanked 2 Times in 2 Posts
artov is on a distinguished road
Problem is (more or less) obvious: Unix programs are

1. Files that do not have extension (or they are named "a.out", but since there can be only one a.out, they are either renamed or compiled already using a different name)
2. They have execution ("x") mode on, which means they can be run

Since Windows knows nothing about execution mode, files in ZIP archives normally end with execution mode on.

Following worked fine: I copied a JPG file (a photo of my grand father's old smoke sauna) to file with no extension ("img") and put its x mode on ("chmod +x img). Now, Finder thinks it is Unix excutable file.

But, when you check the file type using "file" command on Terminal.app, it says: "img: JPEG image data, JFIF standard 1.01". This is because file command tries to read the file content, and check what the file really is.
Reply With Quote
  #5  
Old August 15th, 2008, 01:51 AM
Natobasso's Avatar
Tech-Bot 5000
 
Join Date: Jul 2002
Location: Auckland, New Zealand
Posts: 2,980
Thanks: 1
Thanked 5 Times in 5 Posts
Natobasso is on a distinguished road
Your mac is probably misreading the quark file. Try giving them the .qxd dot extension and see if they open.
__________________
Powerpoint is not a design application
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT -5. The time now is 01:25 AM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.