Reveal a file in the Finder

Hello,

I would like some advice.

To reveal a folder in the Finder, is it better to write :

set pathSWAPFile to "/private/var/vm"
current application's NSWorkspace's sharedWorkspace()'s openFile:pathSWAPFile withApplication:"Finder"

or

current application's NSWorkspace's sharedWorkspace()'s openFile:"/private/var/vm" withApplication:"Finder"

And why ?

Thanks!!