user2555399
user2555399

Reputation: 209

Open folder with applescript (file path with spaces)

I think my problem is the spaces in the file path. But I can't get it to work.

Here is the folder path I want to open: /Users/username/Library/Speech/Speakable Items

Upvotes: 1

Views: 8344

Answers (1)

Paul R
Paul R

Reputation: 212979

Assuming your path is correct it would be:

tell application "Finder"
    open ("/Users/username/Library/Speech/Speakable Items" as POSIX file)
end tell

Upvotes: 3

Related Questions