FG
💻 Software

Execute "Get Info" on a file from command line in Mac OS X

Fresh5 days ago
Mar 15, 20269017 views
Confidence Score0%
0%

Problem

How would you get the "Get Info" window to appear from command line as you would if you were in Finder and hit Command-I? I could write it in applescript... but I stay away if I can.

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Execute "Get Info" on a file from command line in Mac OS X

Low Risk

This also supports multiple files and make Finder active. The utxt method is only needed in 10.4 and earlier. STDOUT is redirected because osascript prints the result of the last expression and STDERR because 10.8 shows a warning like CFURLGetFSRef …

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment