User Tools

Site Tools


condition:File_Attribute

File Attribute condition

The File Attribute condition (v11.0+) checks a file attribute to see if it has a specified value.

File Attributes Available

  • file type (Directory, Package, File, Symlink, Socket, Character Special, Block Special, or Unknown).
  • file size in bytes.
  • creation date.
  • modification date.
  • added date.
  • last used date.
  • downloaded date.
  • where from.
  • owner name.
  • owner id.
  • group name.
  • group id.
  • POSIX permissions.
  • extension hidden.
  • invisible.
  • HFS creator code.
  • HFS type code.
  • content type.
  • content kind.
  • tags.
  • comment.
  • parent path.
  • file name.
  • base name.
  • extension.
  • display name (v9.0+).

Note that content type, content kind, added date, downloaded date, where from and comment are all part of Spotlight and will not work if the directory or volume is excluded from Spotlight.

Conditions

  • is empty.
  • is not empty.
  • is (case insensitively) a specified string.
  • is not (case insensitively) a specified string.
  • contains (case insensitively) a specified string.
  • does not contain (case insensitively) a specified string.
  • starts with (case insensitively) a specified string.
  • ends with (case insensitively) a specified string.
  • is alphabetically before a specified string.
  • is alphabetically after a specified string.
  • matches a specified regular expression.
  • does not match a specified regular expression.
  • is numerically less than a specified calculation.
  • is numerically less than or equal to a specified calculation.
  • is numerically equal to a specified calculation.
  • is numerically greater than or equal to a specified calculation.
  • is numerically greater than a specified calculation.
  • is numerically not equal to a specified calculation.

See Also

Actions

Conditions

condition/File_Attribute.txt · Last modified: 2023/09/18 04:22 by peternlewis