File path error in Applescript/TextExpander

applescriptpath

I use the following code to open my dropbox folder quickly using textexpander.

tell application "Finder"
    activate
    set f to POSIX file "/Users/MrT/Dropbox"
    open f
end tell

Which works, but then I want to go deeper in my folders using this code. It does not work.
It looks like Textexapnder does not recognize spaces in file paths.

tell application "Finder"
    activate
    set f to POSIX file "/Users/MrT/Dropbox/School/Hardvard/6-Fall Session 2013"
    open f
end tell

Best Answer

I might be totally off track, but give this a try:

tell application "Finder"
    activate
    set f to "Users/MrT/Dropbox/School/Hardvard/6-Fall Session 2013"
    set a to POSIX file f
    open a
end tell

If that fails to work, change it to the following:

tell application "Finder"
    activate
    set f to "Macintosh HD:Users:MrT:Dropbox:School:Hardvard:6-Fall Session 2013"
    set a to POSIX file f
    open a
end tell