Create a file: Difference between revisions

→‎{{header|AppleScript}}: Observations and corrections noted.
(add task to ARM64 assembly Raspberry Pi)
(→‎{{header|AppleScript}}: Observations and corrections noted.)
Line 269:
<lang AppleScript >tell application "Finder" to make new folder at window 1 with properties {name:"docs"}</lang>
--[[User:Apl.way|Apl.way]] 21:20, 9 June 2010 (UTC)
 
'''Observations on 28th February 2020:'''
 
#The command for closing a file access previously opened with <code>open for access</code> is <code>close access</code>, not <code>close</code>.
#While specifying just a file name did at one time cause the file to be created at the root level of the startup disk, this is now prevented by macOS's security measures:
##The system actively discourages the creation of files in that location.
##It's more likely to cooperate with file commands having AppleScript or application "specifiers" as parameters than it is when the parameters are merely text.
#In macOS, the "current working directory" is effectively the root level of the startup disk anyway, except in the Terminal application when "cd" is used or during a shell script containing "cd" which is being executed using AppleScript's <code>do shell script</code> command.
#In view of points 2.2 and 3 above, this task is ideally one that should not be casually performed on Mac computers.
 
=={{header|ARM Assembly}}==
557

edits