How to get inode from alias file?
Try:

set aliasPath to "Mac OS X:Users:John:Desktop:test.txt alias"

tell application "Finder"
    set myalias to file aliasPath
    set myFile to original item of myalias
end tell

set filePath to myFile as text
set inode to first word of (do shell script "ls -i " &amp; quoted form of (POSIX path of filePath))