Salutations,
I am new here and was wondering how to open files in accordance with what is selected in the file open box; when i select a file and click ok it responds in the “the result box” saying “alias” then the file path. I was wondering how to use this path to open said file for access. (im really new at this, am using the “Using applescript” guides supplied by Apple; they are pretty much worthless)
the_geek128
i think…
set myResult to choose file
tell app “finder”
open file myResult
end tell
You are right, but now i want to write a program that works off a prefrences file so it couldent ask for the file name. when i type in the file name and/or path, it gives me a file error.
You want open a file for access (write data, etc.)? Then:
Perhaps what you were trying was:
Which will error. However, you can:
Anyway, if you are working with a “.plist” file, you may want take a look to the shell command “defaults” (man defaults).