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]

  • pbcopy for macOS

  • xclip for Linux

  • example

Copy path from finder

option key
  • Automator -> Quick Action

create quick action
content menu
copy path apple script
copy path shortcut key

create app

[!NOTE|label:references:]

groovyConsole

[!NOTE|label:expection] case: run groovyConsole from 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 CFBundleExecutable filename

  • Open Automator.app » New » Application Automator.app » select Applicaiton

  • Select Run Shell Script » save to .app with empty shell script Automator.app » select Run 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/groovyConsole directly. 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@version is necessary for IDLE to 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:

reset file associations

[!NOTE|label:references:]

enable Technical Symbols

  • Input Method ⇢ Show emoji and symbols

    show emoji & symbols
  • Open Customized ListTechnical Symbols

    customized list
    technical symbols

and snippets

  • go to System PreferencesKeyboardTest

  • add snippets as below snippets

finally

test-1
test-2

unicode hex input

[!NOTE|label:references:]

unicode hex input

settings

  • click input methodOpen Keyboard Settings...

    keyboard settings
  • click +OthersUnicode Hex Input

    unicode hex input

others

create image

[!NOTE|label:references:]

background images

image 1
image 2
image 3

create dmg from app

  • via hdiutil

    [!NOTE|label:references:]

    • -format:

      • UDRW: read/write image

      • UDRO: read-only image

      • UDCO: ADC-compressed image

      • UDZO: zlib-compressed image

      • UDBZ: bzip2-compressed image

      • ULFO: lzfse-compressed image, introduced in macOS 10.11

      • ULMO: lzma-compressed image, introduced in macOS 10.15

      • UDTO: DVD/CD-R master for export

      • UDSP: 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

disk

list disks and volumns

check volumn info

list the apfs info

create volume for case-sensitive APFS

[!NOTE]

  • volume name: CaseSensitive

  • volume size: 4000m (4GB)

  • disk identifier: disk3

  • case-sensitive:

CASE SENSITIVE
CASE INSENSITIVE

APFSX

APFS

erase disk

File System
Abbreviation

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

reference:

  • GPT: GUID Partition Table

  • APM: Apple Partition Map

  • MBR: Master Boot Records

  • multiple partitions

  • splitting partitions

  • merging partitions

check usb

[!NOTE|label:references:]

modify font in plist

[!NOTE|label:references:]

show process details

activity monitor

/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?