Thursday, November 23, 2017

#1 2017-11-12 01:33:20 pm

Titanium
Member
From:: ~/Desktop
Registered: 2005-08-22
Posts: 43
Website

Reveal a file in the Finder

Hello,

I would like some advice.

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

Applescript:

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

or

Applescript:

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

And why ?

Thanks!!

Last edited by Titanium (2017-11-12 02:25:21 pm)


iMac 27" 3,4 Ghz - macOS High Sierra
https://www.titanium-software.fr

Offline

 

Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)