Skip to content

Commit

Permalink
Fix incorrect claim about mdls metadata name remaining unchanged
Browse files Browse the repository at this point in the history
Not sure how I messed this up but it does change after the move.
  • Loading branch information
TomasHubelbauer committed Jan 3, 2024
1 parent f2562f1 commit 324e0db
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,22 +63,15 @@ The temporary recording file's name is a UUID.
It doesn't have the date and time in the name so we can't use it to scan
for the final file after the recording has finished.

There are two ways to look at the file `Screen Recording …` files and
see which one aligns with the UUID of the known temporary file name as
it was captured while the screen recording was in progress:
To find which final file corresponds to the temporary recording file, we
can use the `inode`.

`stat -f %i "$HOME/Desktop/Screen Recording ….mov"`

The `inode` number given by this will be the same as the `inode` number
of the final recording, indicating the file is moved after the recording
finishes.

`mdls "$HOME/Desktop/Screen Recording ….mov"`

The `_kMDItemDisplayNameWithExtensions`, `kMDItemDisplayName` and
`kMDItemFSName` attributes reported by this utility all contain the file
name of the temporary file (the UUID one).

### `screencapture` PLIST

There is also a binary PLIST used by `screencapture`.
Expand Down

0 comments on commit 324e0db

Please sign in to comment.