Name

open for access — open file

Description

Opens a file for read access—optionally, for write access—creating the file as a text file if it doesn’t exist (it does this even if you’re opening for read access only; I regard this as a bug). Returns a file reference number that can be used with the other commands.

Get AppleScript: The Definitive Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.