Create a file: Difference between revisions

Line 73:
 
=={{header|AppleScript}}==
AppleScript does not offer built-in File System access, but folders (directories) can be created by controlling the Finder, and files can be created and accessed using the Standard Additions (osax) scripting addition included with AppleScript. Also, the Finder has no concept of the working directory (as it is a GUI). You can however target the frontmost Finder window that is open.
 
<lang AppleScript >close (open for access "output.txt" with write permission)</lang>
 
Anonymous user