Very Newbie Question... Opening a file.

Hello,

I am very new to this and any help would be appreciated.

Can someone tell me how to write this script:

going to a specific folder and opening a file and therefore that file opening up the program it was created by?

Thanks,

CL

Sure:

tell application "Finder" to open "Path:to:the:file"

Just change the path to the actual path of your file. For example, if the file was called ‘some.doc’ in the ‘documents’ folder in your home directory, you would:

tell application "Finder" to open "Macintosh HD:Users:<username>:documents:some.doc"

Thanks Camelot. I’ll give it a go.

CL

This helped me alot when I needed to find a path.

open up a new script editor window and type “choose folder” or “choose file”.
run the script.
a choose folder/file window will pop up
the path of the file you chose will be returned.
for example:

alias “Macintosh HD:Users:alexcamilo:Desktop:deskstuf:[S-O_SD]Naruto_102[A84ECAE9].avi”