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.
|
Here is my updated version of the script (including attribution to the original source, as I found it a couple of years ago). The main change in functionality is that it will handle pathnames that include characters that are not encoded identically between MacRoman and UTF-8 (anything outside ASCII).
|
|||||||||
|
|
I know that I am not truly answering your question, but I get alot of the info I need from using |
|||
|
|
|
Try This out, I found this at http://forums.macosxhints.com/showthread.php?t=10149
|
|||
|
|
I tried several scripts to do this (i.e. pop an information window from the command line). They all work except for aliases and regular files they show the right stuff for symbolic links (symlinks) the show the file information of the underlying file. this is NOT what selecting "Get Information" on a symlink in a finder shows. I've been trying to play around with the applescript code to fix this, but no luck so far. I did write a simple script to handle getting info for multiple files at once.
|
|||
|
|
|
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 was passed this URL which has no scheme when a relative path is converted to an alias. |
|||
|
|