Open File Returns Missing Value

Hey Guys

For some strange reason, i cannot get this to work. The file does exist, however, return results from Applescript state Missing value:

Any Ideas:


tell application "TextEdit"
					
					activate
					
					open "$Home/Documents/TestFolder/text.txt"
					
				end tell

Hi,

AppleScript has no idea about UNIX macros and TextEdit expects a HFS path


set docFolder to path to documents folder as text
tell application "TextEdit"
	activate
	open (docFolder & "TestFolder:text.txt")
end tell

Cheers Stefan,

much appreciated :slight_smile: