tricky
[!TIP|label:references]
get file metadata
[!NOTE|label:references:]
mdls - metadata list
xattr
exiftool
[!NOTE|label:references:]
install via:
sips - images
identify - images
copy path
copy STDOUT into clipboard
[!NOTE]
pbcopyfor macOS
xclipfor Linux
example
Copy path from finder

Automator -> Quick Action




create app
[!NOTE|label:references:]
groovyConsole
[!NOTE|label:expection] case: run
groovyConsolefrom Spolite or Alfred
via Automator.app
[!NOTE|label:tips] Automator.app will create whole bunch of necessary files for app. only need to replace the
CFBundleExecutablefilename
Open Automator.app » New » Application

Select Run Shell Script » save to .app with empty shell script


Automator.app » save to an app
via script
[!NOTE|label:tips:]
get standalone commands for the script
==> which would be:
==> which would be:
try validate via execute
groovyConsole.app/Contents/MacOS/groovyConsoledirectly. to see whether if the groovyConsole will be opened.
Automator.app » show in Alfred
modify Info.plist
original
additional
set the icon for new app
[!NOTE|label:optional]
create dmg
python3 IDLE
[!NOTE|label:references:]
python-tk@versionis necessary forIDLEto work
via automator.app
script
[!TIP|label:tips:]
the IDLE python version is based on which python is linked to
/usr/local/bin/python3

script in automator.app icon
others
via appify
[!NOTE|label:references:]
shell script
create app via appify

IDLE.app more:
Info.plist
change default python3
reset file associations
[!NOTE|label:references:]
enable Technical Symbols
Input Method ⇢ Show emoji and symbols

show emoji & symbols Open Customized List ⇢ Technical Symbols

customized list 
technical symbols
and snippets
go to System Preferences ⇢ Keyboard ⇢ Test
add snippets as below

finally


unicode hex input
[!NOTE|label:references:]

settings
click input method ⇢ Open Keyboard Settings...

keyboard settings click + ⇢ Others ⇢ Unicode Hex Input

unicode hex input
others
create image
[!NOTE|label:references:]
background images



create dmg from app
via
hdiutil[!NOTE|label:references:]
-format:UDRW: read/write imageUDRO: read-only imageUDCO: ADC-compressed imageUDZO: zlib-compressed imageUDBZ: bzip2-compressed imageULFO: lzfse-compressed image, introduced in macOS 10.11ULMO: lzma-compressed image, introduced in macOS 10.15UDTO: DVD/CD-R master for exportUDSP: SPARSE (grows with content)UDSB: SPARSEBUNDLE (grows with content; bundle-backed)UFBI: UDIF entire image with MD5 checksum

hdiutil create image 
hdiutil create encrypted image via
create-dmg
create-dmg
create dvd (for .iso, .img, .dmg)
create dmg for OS installer
resize the disk image
restore disk images
extract
.pkg[!NOTE|label:references:]
.dmg
disk
list disks and volumns
check volumn info
list the apfs info
create volume for case-sensitive APFS
[!NOTE]
volume name:
CaseSensitivevolume size:
4000m(4GB)disk identifier:
disk3case-sensitive:
APFSX
APFS
erase disk
Mac OS Extended (Journaled)
JHFS+
Mac OS Extended
HFS+
MS-DOS fat32
FAT32
ExFAT
ExFAT
to list file systems
verifying and repairing volumes
rename volume
partitioning a disk
multiple partitions
splitting partitions
merging partitions
[!NOTE|label:references:]
modify font in plist
[!NOTE|label:references:]
show process details

/usr/bin/xattr
/usr/bin/xattr[!NOTE|label:references:]
init
create attributes
print attributes
clear attributes
tips
shutdown mac via commands
sleep
lock
disable startup music
3D lock screen
take screenshot after 3 sec
setup welcome text in login screen
show message on desktop
install the application on the device
or
or
show startup launch apps
check detail diskage usage
notch
[!TIP|label:references:]
reduce the menu bar item spacing
read status
setup spacing
revert
Last updated
Was this helpful?