Archive for March, 2007

Mac OS X hidden files: why???

Why does Mac OS X create a hidden file for every file that is saved?

I tried searching for an answer to this question on Google, but unfortunately I got a bunch of results about how to view hidden files in Mac OS X.

I’m no Mac expert and maybe some Mac enthusiast can convince me otherwise. But isn’t it absolutely absurd to create a hidden file for every file saved on a Mac? Specifically, I’m talking about the stuff I’m seeing in our Samba shared drive here in the office. Anything saved to that shared drive from a mac, also puts a hidden file with essentially the same name as the original file, but with a dot-underscore (._) before it. And of course, since I’m on Windows this becomes very annoying because if I remove the real file, the hidden file is left behind and after a lot of usage these hidden—seemingly useless—files pile up. Where’s The Fire??

I assume it has something to do with file association, but isn’t Apple smarter than that? Is there a way to turn this off?

Bookmark and Share

5 Responses  |  add yours »

Using SWFObject for Flash Version Tracking

At my company, we use Omniture SiteCatalyst for our web analytics/tracking. Unfortunately, Omniture does not give user’s Flash Version statistics in their standard reports like Google Analytics does. On the other hand, Omniture gives you the freedom to create custom reports that you can determine on your own using their provided JavaScript code.

I am already using SWFObject to load the flash piece on our homepage to users with a specified version. So I figured I could hack that code a bit in order to pull the version it was already determining for me, and plug it into the Omniture code.

After mulling through the SWFObject code, I finally was able to run this page successfully, which will alert the exact version of flash I am using:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>test</title>
<script type="text/javascript" src="swfobject.js"></script>
</head><body>
<script type="text/javascript">
alert(deconcept.SWFObjectUtil.getPlayerVersion().major+
"."+deconcept.SWFObjectUtil.getPlayerVersion().minor+
"."+deconcept.SWFObjectUtil.getPlayerVersion().rev);
</script>
</body>
</html>

Basically, you can use deconcept.SWFObjectUtil.getPlayerVersion().major to get the major version, etc.

Once I got that working, I was able to use that same concept to plug it into my tracking code.

Bookmark and Share

5 Responses  |  add yours »

Search