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/03/21 19:15]
JMichaelTX Revise script to distinguish between Alias and SymLink
action:Get_File_Attribute [2023/09/18 03:53]
peternlewis [Forum]
Line 8: Line 8:
  
 The result of the action is displayed at the bottom of the action. The result of the action is displayed at the bottom of the action.
 +
 +===== File attributes available =====
 +
 +  *file type (r/o) (Directory, Package, File, Symlink, Socket, Character Special, Block Special, or Unknown).
 +  *file size (r/o) in bytes.
 +  *creation date.
 +  *modification date.
 +  *added date.
 +  *last used date.
 +  *downloaded date.
 +  *where from.
 +  *owner name (r/o).
 +  *owner id (r/o).
 +  *group name.
 +  *group id.
 +  *POSIX permissions.
 +  *extension hidden.
 +  *invisible.
 +  *HFS creator code.
 +  *HFS type code.
 +  *content type.
 +  *content kind.
 +  *tags (set, add, remove or toggle).
 +  *comment.
 +  *parent path (r/o).
 +  *file name (r/o).
 +  *base name (r/o).
 +  *extension (r/o).
 +  *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 =====
 +
 +There are several more attributes available using the [[action:​Filter|Filter]] action.
 +
 +  * Delete the the path extension.
 +  * Expand Path to full page, replacing tilde (~) in the path.
 +  * Resolve symlinks, or standardize the path.
 +
  
 ===== Using Alias and SymLink Files ===== ===== Using Alias and SymLink Files =====
Line 45: Line 85:
  
 ``` ```
- 
- 
- 
---- 
- 
-===== File attributes available ===== 
- 
-  *file type (r/o). 
-  *file size (r/o). 
-  *creation date. 
-  *modification date. 
-  *added date. 
-  *last used date. 
-  *downloaded date. 
-  *where from. 
-  *owner name (r/o). 
-  *owner id (r/o). 
-  *group name. 
-  *group id. 
-  *POSIX permissions. 
-  *extension hidden. 
-  *invisible. 
-  *HFS creator code. 
-  *HFS type code. 
-  *content type. 
-  *content kind. 
-  *tags (set, add, remove or toggle). 
-  *comment. 
-  *parent path (r/o). 
-  *file name (r/o). 
-  *base name (r/o). 
-  *extension (r/o). 
- 
-===== Addition File Attributes ===== 
- 
-There are several more attributes available using the [[action:​Filter|Filter]] [[:​Actions|Action]]. 
- 
-  * Get or delete the last path component or 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. 
-  * Resolve symlinks, or standardize the path. 
- 
  
 ===== See Also ===== ===== See Also =====
  
-----+==== Actions ====
  
-=== Actions ​===+* [[Set File Attribute]] 
 +* [[Filter]] 
 +* [[:Actions|See all Actions]]
  
-* [[action:​Set File Attribute|Set File Attribute]] +=== Conditions ===
-* [[action:​Filter|Filter]] +
-* [[:​Actions|See all Actions]]+
  
-----+* [[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