Getting certain file attrib / attributes
Posted: Thu Oct 15, 2015 6:35 pm
Hello, I searched for a method to to find out a particular Attrib of a file to no avail, particularly the "Attributes" section (pics below).
I just had a few questions:
1. Is there a LC command I am missing that can set file attributes besides using shell command
2. Is there a way to get the specific attrib in the pics below with a LC command. I am unsure on how to use shell command here.
2a. Generic - I know there is a command "files" and you can code to find certain attributes, which looks thru a folder. Is there a LC command to just target a single file with a file path?
I tested the below file pics and both give me 777.
Files command excerpt:
The detailed files form returns a list of files, one file per line. Each line contains the following attributes, separated by commas:
* The file's name, URL-encoded
* The file's size in bytes (on Mac OS and OS X systems, the size of the file's data fork)
* The resource fork size in bytes (Mac OS and OS X systems only)
* The file's creation date in seconds (Mac OS, OS X, and Windows systems only)
* The file's modification date in seconds
* The file's last-accessed date in seconds (Unix, OS X and Windows systems only)
* The file's last-backup date in seconds (Mac OS and OS X systems only)
* The file's owner (Unix and OS X systems only)
* The file's group owner (Unix and OS X systems only)
* The file's access permissions
* The file's creator and file type (Mac OS and OS X only)
Any attribute that is not supported on the current system is reported as empty.
I just had a few questions:
1. Is there a LC command I am missing that can set file attributes besides using shell command
2. Is there a way to get the specific attrib in the pics below with a LC command. I am unsure on how to use shell command here.
2a. Generic - I know there is a command "files" and you can code to find certain attributes, which looks thru a folder. Is there a LC command to just target a single file with a file path?
I tested the below file pics and both give me 777.
Files command excerpt:
The detailed files form returns a list of files, one file per line. Each line contains the following attributes, separated by commas:
* The file's name, URL-encoded
* The file's size in bytes (on Mac OS and OS X systems, the size of the file's data fork)
* The resource fork size in bytes (Mac OS and OS X systems only)
* The file's creation date in seconds (Mac OS, OS X, and Windows systems only)
* The file's modification date in seconds
* The file's last-accessed date in seconds (Unix, OS X and Windows systems only)
* The file's last-backup date in seconds (Mac OS and OS X systems only)
* The file's owner (Unix and OS X systems only)
* The file's group owner (Unix and OS X systems only)
* The file's access permissions
* The file's creator and file type (Mac OS and OS X only)
Any attribute that is not supported on the current system is reported as empty.