Sync/Merge Tags, Labels and Comments (XY Database ↔ Alternate Data Stream)

Discuss and share scripts and script files...
Post Reply
Norn
Posts: 521
Joined: 24 Oct 2021 16:10

Sync/Merge Tags, Labels and Comments (XY Database ↔ Alternate Data Stream)

Post by Norn »

Note:
  • ADS is supported only on NTFS volumes. File operations performed with software that does not support ADS may result in ADS data loss.
  • Applications that support ADS include XYplorer, Windows Explorer, Directory Opus (disabled by default), GoodSync, WinRAR (with the relevant option enabled), FreeFileSync, and FastCopy (with AltStream enabled).
  • ADS support may vary between applications, and some operations may require additional settings. It is recommended to verify that ADS is preserved after important file operations.
This is a new thread for my Sync/Merge scripts. I don't actually use most of the scripts in the original scripts thread, so I've decided to start fresh.



Sync Tags, Labels and Comments <-> ADS (Alternate Data Stream) (NTFS Only)
Sync Tags, Labels and Comments ↔ ADS (Alternate Data Stream) (NTFS Only) (Merged) v0.7.xys
Sync Tags, Labels and Comments ↔ ADS (Alternate Data Stream) (NTFS Only) v0.7.xys


Required XYplorer settings for the following scripts:
  • Enable: Configuration | Information | Tags | Auto-refresh tags
  • Disable: Configuration | General | Startup & Exit | Save Settings | Save changes to disk immediately | Tags
Backup dirty tags, labels and comments, To -> CEA-After browsing a folder
Dirty Tags Backup v0.3 (To CEA - After browsing a folder).xys
Dirty Tags Backup v0.3 (To CEA - After browsing a folder, Append Mode).xys
To -> Configuration | General | Custom Event Actions | Other Events | Exit
Sync Dirty Tags to ADS (To CEA - Exit) v0.3.xys
Sync Dirty Tags to ADS (To CEA - Exit) Merge Tags &amp; ADS v0.3.xys
To see the attached files, you need to log into the forum.
Windows 11 24H2 @100% 2560x1440

Norn
Posts: 521
Joined: 24 Oct 2021 16:10

Re: Sync/Merge Tags, Labels and Comments (XY Database ↔ Alternate Data Stream)

Post by Norn »

Read Dirty Tags File and Reapply Tags as Dirty
Read Dirty Tags File and Reapply Tags as Dirty v0.3.txt


Custom column: ADS Tags (Item type: Files and Folders):

Code: Select all

//Function : Custom Column: ADS Tags (Files and Folders) 2022-07-28 (Ken)
//Version  : v1.2 (2022-07-29)

	if (exists("<cc_item>:Tags")) {               // Check whether ADS exists
		$data = readfile("<cc_item>:Tags");       // Read ADS tags
		return gettoken($data, 1, "<crlf>");      // Return the first line
	}

Related Script:
Merge Tags, Labels and Comments from Duplicate Items into the Target Item (Including ADS)
To see the attached files, you need to log into the forum.
Windows 11 24H2 @100% 2560x1440

Post Reply