Skip navigation

PREVIEWS for unrecognized FILE TYPES?

486 Views 14 Replies Latest reply: Apr 11, 2012 11:53 AM by Don Archibald RSS
hotwheels 22 Level 1 Level 1 (0 points)
Currently Being Moderated
Apr 10, 2012 11:22 AM

i have some .rvb files that can be opened in TEXTWRANGLER and which come from a windows based 3D software program. These open as TEXT and I am finding that I /sometimes/ see the TEXT previews for these files and I sometimes don't see the previews for these files. When I don't see the previews I just see a blank page without the text.

 

this does not /appear/ to be related to whether the file has been opened recently and it appears to change visibility when I /move/ the files to a new folder (in this case the previews went away).

 

i also notice that the icon is sometimes correct and sometimes just blank.

 

can anyone help me troubleshoot this a little so i understand how to keep the previews as this is invaluable for my editing workflow.

 

thanks.

  • Don Archibald Level 10 Level 10 (101,125 points)
    Currently Being Moderated
    Apr 10, 2012 11:43 AM (in response to hotwheels 22)

    Some settings for folders are on a per folder basis. Check the settings for one of the folders in which it displays a generic icon - open the folder, then press Command-J (or select Show View Options from the View menu). In the View Options screen, if the item "Show Icon Preview" is not checkmarked, checkmark it.

  • fane_j Level 4 Level 4 (3,655 points)
    Currently Being Moderated
    Apr 10, 2012 1:32 PM (in response to hotwheels 22)

    hotwheels 22 wrote:

     

    I am finding that I /sometimes/ see the TEXT previews for these files and I sometimes don't see the previews for these files. When I don't see the previews I just see a blank page without the text.

    When you say "TEXT previews", do you mean Quick Look?

     

    <http://docs.info.apple.com/article.html?path=Mac/10.6/en/14119.html>

     

    If so, QL deals with files based on type code, file name extension, or UTI. If your .rvb files come from Win, then they have neither the former, nor the latter, and the name extension is not declared by any app, so QL doesn't know what to do with them. Here's what you can try:

     

    (1) Set the default app to open these files to TextWrangler in the usual way. This might or might not work, I'm not sure.

     

    (2) Use RCDefaultApp to associate .rvb files with TW. Again, this might or might not work, I'm not sure.

     

    (3) Use the following AppleScript to create a droplet (save it in AppleScript Editor as an app).

     

    --script begins

     

    (* We use "name contains" instead of "name extension is" because the latter doesn't seem to work reliably. *)

     

    on open theFiles

              tell application "Finder"

                        repeat with i in theFiles

                                  if name of i contains ".rvb" then

                                            set file type of i to "TEXT"

                                  end if

                        end repeat

              end tell

    end open

    --script ends

     

    The type code "TEXT" will be assigned to any Finder item dropped on it which contains the string ".rvb" in its name. This should work.

     

    (4) Edit TextWrangler's UTI type declaration to add .rvb. The issue is described here

     

    <http://hints.macworld.com/article.php?story=20071028184428583>

     

    (Scroll and look at the hint about Coda—it applies to your problem, mutatis mutandis.)

     

    (5) Use extended attributes, as described in here

     

    <http://hints.macworld.com/article.php?story=20100112100027790>

     

    Methods (1) and (2) may or may not work, I'm not sure. But it's easy to try them out.

     

    Methods (3), (4), and (5) will definitely work. But you may find (4) and (5) a little too complicated.

  • fane_j Level 4 Level 4 (3,655 points)
    Currently Being Moderated
    Apr 10, 2012 3:55 PM (in response to hotwheels 22)

    hotwheels 22 wrote:

     

    THANK YOU.

    You're very welcome.

    Can I ask you just now though if the screenshot I posted to Don changes anything here for you?

    As we've discussed at least three times before, at present I don't have access to Dropbox. So I cannot see your screen shot.

     

    If your issue is with Quick Look and text files, my previous post should cover it. Otherwise, I couldn't tell.

  • Don Archibald Level 10 Level 10 (101,125 points)
    Currently Being Moderated
    Apr 10, 2012 10:12 PM (in response to hotwheels 22)

    Sometimes OS X (including Snow Leopard and Lion) does not display custom icons well.

     

    SL uses its own method (perhaps accessing Preview's or QuickLook's capabilites) to display what appears to be a custom icon or thumbnail for a file, when in fact the file has none.

     

    Something to try - do a Get Info on one of the icons showing a generic icon, click on the icon in the upper left of the Get Info screen to select it, then choose "Clear" from the Edit menu if that is available. Doing this will remove any custom icon from the file.

  • Don Archibald Level 10 Level 10 (101,125 points)
    Currently Being Moderated
    Apr 11, 2012 11:36 AM (in response to hotwheels 22)

    Okay - I'm still a bit old school, I should have said "Cut".

     

    Do a Get Info on the file - select it by clicking it once, then press Command-i

     

    Then click the icon in the ipper left of the Get Info to select it; once selected, it should display a pale blue border -

    Screen Shot 2012-04-11 at 13.30.02 .png

     

    Once the icon is selected, go to the Edit menu in the main menubar. If "Cut" is available, that means the file has a custom icon. Choose "Cut" to remove the custom icon.

    Screen Shot 2012-04-11 at 13.30.58 .png

  • Don Archibald Level 10 Level 10 (101,125 points)
    Currently Being Moderated
    Apr 11, 2012 11:53 AM (in response to hotwheels 22)

    If the only choice then offered in the Edit menu is "Copy", that means there is no custom icon present, hence that would not be a possible source of the issue.

Actions

More Like This

  • Retrieving data ...

Bookmarked By (0)

Legend

  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.