iFileMac->GetResolvedFSSpec(&fsSpec);
iFileMac->GetFSSpec(&fsSpec);
Convert_nsIFile_To_nsFileSpec(nsIFile *aInIFile, nsFileSpec **aOutFileSpec){    nsresult rv = NS_OK;    if (!aInIFile || !aOutFileSpec)        return NS_ERROR_FAILURE;    *aOutFileSpec = nsnull;    #ifdef XP_MAC    FSSpec fsSpec;    nsCOMPtr<nsILocalFileMac> iFileMac;    iFileMac = do_QueryInterface(aInIFile, &rv);    if (NS_SUCCEEDED(rv))    {        iFileMac->GetResolvedFSSpec(&fsSpec);        *aOutFileSpec = new nsFileSpec(fsSpec, PR_FALSE);    }#else    char *path = nsnull;    rv = aInIFile->GetPath(&path);    if (NS_SUCCEEDED(rv))    {        *aOutFileSpec = new nsFileSpec(path, PR_FALSE);    }    // NOTE: don't release path since nsFileSpec's mPath points to it #endif    if (!*aOutFileSpec)        rv = NS_ERROR_FAILURE;    return rv;}