1

Here's the code I have now:

tell application "Finder"
get some file of (folder (POSIX file "Desktop/musics"))
end tell
0
tell application "Finder" to open some file in the folder ¬
    (POSIX file "/Users/%you%/Desktop/musics")

where %you% is to be replaced by the name of your user home directory (it's the one that looks like a house in Finder).

| improve this answer | |
0

Here is another option.

tell application "Finder"
    set someFile to some file of folder ((path to desktop as text) & "musics")
    open someFile
end tell
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.