User Tools

Site Tools


action:Get_File_Attribute

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
action:Get_File_Attribute [2019/07/08 04:47]
peternlewis
action:Get_File_Attribute [2023/09/18 03:53]
peternlewis [Forum]
Line 11: Line 11:
 ===== File attributes available ===== ===== File attributes available =====
  
-  *file type (r/o).+  *file type (r/o) (Directory, Package, File, Symlink, Socket, Character Special, Block Special, or Unknown).
   *file size (r/o) in bytes.   *file size (r/o) in bytes.
   *creation date.   *creation date.
Line 37: Line 37:
   *extension (r/o).   *extension (r/o).
   *display name (r/o, v9.0+).   *display name (r/o, 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.
  
 ===== Addition File Attributes ===== ===== Addition File Attributes =====
  
-There are several more attributes available using the [[action:​Filter|Filter]] ​[[:​Actions|Action]].+There are several more attributes available using the [[action:​Filter|Filter]] ​action.
  
-  * Get or delete ​the last path component or the path extension+  * Delete ​the the path extension.
-  * Get the basename of the path (ie the name without directory or extension).+
   * Expand Path to full page, replacing tilde (~) in the path.   * Expand Path to full page, replacing tilde (~) in the path.
   * Resolve symlinks, or standardize the path.   * Resolve symlinks, or standardize the path.
Line 89: Line 90:
 ==== Actions ==== ==== Actions ====
  
-* [[action:Set File Attribute|Set File Attribute]] +* [[Set File Attribute]] 
-* [[action:​Filter|Filter]]+* [[Filter]]
 * [[:​Actions|See all Actions]] * [[:​Actions|See all Actions]]
 +
 +=== Conditions ===
 +
 +* [[condition:​File_Attribute|File Attribute]]
 +* [[condition:​Path|Path]]
 +* [[:​Conditions|See all Conditions]]
  
 ==== Forum ==== ==== Forum ====
action/Get_File_Attribute.txt · Last modified: 2023/09/18 04:15 by peternlewis