1

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

1 Answer 1

3

Assuming your path is correct it would be:

tell application "Finder"
    open ("/Users/username/Library/Speech/Speakable Items" as POSIX file)
end tell
Sign up to request clarification or add additional context in comments.

4 Comments

I get the error: error "Finder got an error: AppleEvent handler failed." number -10000 The file path should be correct because I dragged it straight from finder into AppleScript and it matches what I thought it should be.
OK - try it with an easier path first, e.g. tell application "Finder" open ("/Users/username/Documents" as POSIX file) end tell - that works OK for me - I couldn't try Speakable Items as I don't seem to have that folder anywhere. I did try it with a path with spaces though and that seems to work OK too.
Duh!!!! Forgot to change "username" back to my name! How stupid of me! Thanks So Much!
Aha - good catch - I was mystified as to why it didn't work for you!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.