config
Modified: February 14, 2026 7:58 PM Category: Coding Notes List: Projects Created: November 18, 2025 10:53 AM Master Type: Notes Hide: No Starred: No Status: Unassigned
#!/bin/bash
# ---------- MASTER CONFIG (Auto-detect HBC### volume and enclosure) ----------
# Detect volume
ROOT_VOLUME=$(ls /Volumes | grep -E '^HBC[0-9]{3,4}$' | head -n1)
if [ -z "$ROOT_VOLUME" ]; then
echo "No HBC### volume mounted. Exiting."
exit 1
fi
ROOT_VOLUME="/Volumes/$ROOT_VOLUME"
# Detect enclosure folder dynamically
ENCLOSURE_NAMES=("Binders" "Bins" "Boxes" "Enclosures" "Crates" "Shoeboxes")
MAX_DEPTH=5
find_expr=()
for ENC in "${ENCLOSURE_NAMES[@]}"; do
find_expr+=(-name "$ENC" -o)
done
find_expr=("${find_expr[@]:0:${#find_expr[@]}-1}")
# Ignore macOS system directories that spew Permission Denied
TOP_BASE=$(find "$ROOT_VOLUME" \
\( -path "*/.DocumentRevisions-V100" -o -path "*/.TemporaryItems" -o -path "*/.Trashes" \) -prune -o \
\( -maxdepth "$MAX_DEPTH" -type d \( "${find_expr[@]}" \) -print \) 2>/dev/null | head -n1)
if [ -z "$TOP_BASE" ]; then
echo "❌ No enclosure folder found in $ROOT_VOLUME (up to depth $MAX_DEPTH)"
exit 1
else
echo "✅ Enclosure folder detected at: $TOP_BASE"
fi
# Core paths
EXPORTS_DIR="$TOP_BASE/Exports"
PROCESSED_DIR="$TOP_BASE/Processed"
POS_DIR="$TOP_BASE/Positives"
NEG_DIR="$TOP_BASE/Negatives"
COLLECTION_DIR="$TOP_BASE/Collection"
DEST_VERSO="$COLLECTION_DIR/Verso Positives"
# Primary Photoshop settings
PHOTOSHOP_APP="Adobe Photoshop 2026"
ACTION_NEGATIVE="Default Adjustments"
ACTION_SET="Essential"
# Secondary Photoshop settings
# Export actions
ACTION_PRINT="Print Edit"
ACTION_EXPORT="Export Positives"
ACTION_NEGATIVES="Export Negatives"
ACTION_POSITIVE="Export Prints"
# Phase timing
PHASE1_STABLE_SECONDS=15
PHASE2_IDLE_SECONDS=30
PHASE2_SLEEP_INTERVAL=10
PHASE3_IDLE_SECONDS=20
PHASE3_SLEEP_INTERVAL=5
# ImageMagick
MAGICK="/opt/homebrew/bin/magick"
# Phase 3 processed subfolders
PROCESSED_DIRS=("Processed" "Processed/PSDs" "Processed/TIFFs" "Processed/JPGs")
# ---------------------------
# Fun tips for spinner
# ---------------------------
TIPS=(
"📸 Coffee levels low. Operator alert recommended."
"🐾 Feline observers online. Spreadsheet approval pending."
"⏳ Patience required. Temporal flux minimal but present."
"✨ Archive integrity at maximum sparkle output."
"🌊 Hang tight. Waveforms nominal, operator stable."
"🔮 Processing magic… flux capacitors at 72%."
"💾 Backup engaged. Future-you will report success."
"🦖 Dino-level patience required. Fossil signals detected."
"📝 Logging notes… head trauma risk minimal."
"🎨 Color calibration active. Vividness at 97%."
"🚀 Retro-futurist energy loading… warp cores stabilizing."
"🗂 Sorting history… one artifact at a time."
"💡 Bright idea detected. Routing to mainframe."
"🕵️♀️ Inspecting data… anomaly detection online."
"⚡ Almost done… final sequences initializing."
"🌌 Pixels aligning… cosmic synchronization complete."
"🖼 Another artifact scanned… victory protocol engaged."
"☕ Caffeine levels nominal. Moodlet bonus active."
"🐱 Cat consensus reached: digitization approved."
"🎇 Magic signal detected between clicks."
"🔧 Photoshop action deployed… feline AI supervising."
"🪐 Archive orbit engaged. All systems nominal."
"📦 Boxes secured. Tagging protocol active."
"🔍 Zoom sequence complete. Details optimized."
"🧩 Archival assembly progressing… module stability 100%."
"🎶 Quiet beats enabled. Workflow efficiency +5."
"🧵 Threads of history digitally stitched. No tears."
"🌿 Operator breathing stable. Archive thanks you."
"🖋 Metadata wizardry detected. Spellcasting active."
"📐 Precision calibration active. Pixels aligned."
"🌟 Minor victories logged. Accumulate morale boost."
"🛠 Tools online. Operational magic detected."
"🥽 Safety protocol engaged. Pixel hazards minimal."
"🧠 Neural networks engaged. Cognitive load optimal."
"🌸 Workspace aesthetic nominal. Operator satisfaction +2."
"🔒 Archival protection active. Security protocols online."
"📊 Data love flowing. Spreadsheet integrity stable."
"🎁 Every scan secured. Gift transmission confirmed."
"🛸 Workflow efficiency approaching UFO-class levels."
"💌 Future researchers will send commendations."
"🖤 Dark mode active. Moodlet bonus applied."
"🎢 Digitization rollercoaster online. Hold on."
"🔑 Unlocking archive secrets… sequence successful."
"🌞 Sunlight optional. Brilliance levels sufficient."
"🦉 Wisdom protocol engaged. Archive guidance online."
"🛎 Ding! Process complete. All files secured."
"📜 Catalogue logging… poetry metrics stable."
"🌠 Star alignment nominal. TIFFs incoming."
"🥂 Batch celebration protocol activated."
"💫 Sparkle levels responsibly maintained."
"🖍 Drawing outside lines optional. Risk: chaos."
"📚 History grows. Incremental progress confirmed."
"🎯 Focus modules online. Task success probability +12%."
"🪁 Creativity levels soaring. Order stability maintained."
"🕰 Temporal navigation complete. Negative secured."
"🥇 Specialist achievement unlocked. Recognition granted."
"💥 Pixel storm incoming… brace your coffee."
"🛸 Alien observer: data integrity confirmed."
"📡 Signal booster online. Archive ping successful."
"⚡ Capacitors charged. Sparks may fly."
"🖥 Monitor flicker detected… just aesthetics."
"🪐 Planetary alignment favors new TIFF uploads."
"🧭 Navigation console active. Metadata coordinates set."
"🎛 Dial knobs clockwise… efficiency +7%."
"🛠 Emergency toolkit online. Use responsibly."
"💣 Minor glitch detected… ignore at your own risk."
"🌠 Starfield projection engaged. Moodlet: inspired."
"🛰 Satellite ping received. Archive operational."
"🕹 Joystick optional. Cursor stabilized."
"🖱 Mouse calibration nominal. Click at will."
"🔋 Power cells charged. Operator alertness advised."
"💾 Mainframe memory banks humming… hum soothing."
"📝 Digital quills ready. Logging commencing."
"🧠 Neural interface active. Thought-stream synced."
"🧵 Threads of data: minor tangles detected, fixing."
"📦 Cargo bay full. Extra pixels secured in storage."
"🎯 Target archive locked. Precision protocols online."
"💫 Photon beams aligned. TIFFs incoming."
"🎆 Retrofuturistic fireworks queued. Stand by."
"📊 Data integrity: 100% confirmed. Spreadsheet victory."
"🌿 Oxygen levels normal. Operator can breathe easy."
"🎶 Retro synth ambient soundtrack active."
"💌 Message to future researchers queued."
"🛸 UFO-level efficiency confirmed. No abducted pixels."
"🛎 Archive alert: batch complete. Ding!"
"🪐 Orbital sequence nominal. Archive intact."
"⚡ Voltage spike detected… aesthetic only."
"🔒 Security protocols online. Data safe."
"💥 Minor cosmic glitch… ignore unless dramatic."
"🛰 Incoming archive signal… all channels green."
)
# ---------------------------
# Spinner function
# ---------------------------
spinner() {
local pid=$1
local tips=("${TIPS[@]}")
local min_time=${2:-2}
local start_time=$(date +%s)
local delay=0.15
local spinstr='|/-\'
local sparkles=("✨" "🌟" "💫" "⭐️" "🐾" "✦" "º" "•")
local tip_interval_secs=1
local last_tip_time=$(date +%s)
local tip="${tips[$((RANDOM % ${#tips[@]}))]}"
local i=0
local max_len=0
for t in "${tips[@]}"; do (( ${#t} > max_len )) && max_len=${#t}; done
while kill -0 "$pid" 2>/dev/null; do
local now=$(date +%s)
if (( now - last_tip_time >= tip_interval_secs )); then
tip="${tips[$((RANDOM % ${#tips[@]}))]}"
last_tip_time=$now
fi
local idx=$(( i % 4 ))
local spin_char="${spinstr:$idx:1}"
local sparkle="${sparkles[$((RANDOM % ${#sparkles[@]}))]}"
printf "\rWorking... %-*s %s" "$max_len" "$tip" "$spin_char$sparkle"
sleep $delay
((i++))
done
printf "\rWorking... %-*s ✅ Done!\n" "$max_len" "$tip"
}