local fn DoIt CFURLRef desktopURL = fn FileManagerURLForDirectory( NSDesktopDirectory, NSUserDomainMask ) CFURLRef url = fn URLByAppendingPathComponent( desktopURL, @"test_file.txt" ) CFDictionaryRef attributes = fn FileManagerAttributesOfItemAtURL( url ) printf @"%@", fn DictionaryObjectForKey( attributes, NSFileSize ) end fn fn DoIt HandleEvents