This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For use on MacOS | |
# MacOS cannot show the title metadata of MS Office files. This script shows the | |
# metadata in the Comment field, which can be made visible in the finder app. | |
# Script to extract the MS Office word title metadata and excel title metadata | |
# and copy that text to Comment field, which can be visible in the Finder.app | |
# This enables you to show the comment in Finder.app | |
# | |
# | |
# Installation | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ismac % if computer is a mac. | |
[~,txt] = system('sysctl -a | grep hw.memsize | awk ''{print $2}'''); % get physical system memory | |
memory_avail_in_gb = (eval(txt)/1024^3); % convert from byte to Gb. | |
fprintf(['Available memory: ' num2str(memory_avail_in_gb) ' Gb']) % display amount of memory available | |
else % on pc's | |
memory % use builtin memory function | |
end |