Applescript: Open a Folder in Finder

后端 未结 3 1618
故里飘歌
故里飘歌 2021-01-04 04:52

I m trying to open a folder in Finder using AppleScript. The following is my code. I want the folder WorkSpace to open in Finder, but it opens the Parent Folder

3条回答
  •  误落风尘
    2021-01-04 05:27

    As far as I've searched, there seems to be no way to open the folder rather than just highlighting the folder in AppleScript. So I have used:

    do shell script "open /Volumes/MyMacDrive/Mani/WorkSpace/"
    

    It worked fine for me but please update me if i'm wrong.

提交回复
热议问题