Applescript :Открытие папки в Finder

Я пытаюсь открыть папку в Finder с помощью AppleScript. Ниже приведен мой код. Я хочу, чтобы папка WorkSpaceоткрывалась в Finder, но он открывает родительскую папку /Volumes/MyMacDrive/Maniи выделяет папку WorkSpace. Мне нужно содержимое папки WorkSpace, но все, что я получаю, это содержимое ее родительской папки. Что мне здесь не хватает..?

property the_path : "/Volumes/MyMacDrive/Mani/WorkSpace/"
set the_folder to (POSIX file the_path) as alias
tell application "Finder"
    activate
    if window 1 exists then
        set target of window 1 to the_folder
    else
        reveal the_folder
    end if
end tell
13
задан DᴀʀᴛʜVᴀᴅᴇʀ 12 January 2016 в 18:34
поделиться