|
|
GUI scripting not needed...
Remember, whenever you think GUI Scripting is the answer, check to see first if it is unnecessary. First, when I run your script, I get an error. Second, you can get the info about a selected Finder item without using GUI scripting. Try this:
I don't know exactly which things you wanted from the Info window, but this is most of it. Also, you could write a script to clean up the scientific notation for the file size, but I'm not going to spend time on it now. :-) Notice also that if you have more than one item selected, this just gets the info for the first. You could re-write it to loop over multiple items.
Re: GUI scripting not needed...
Very cool...thanks!
GUI scripting not needed...
That is a good script. This hint is a bit dated, because I was already able to find the stuff I wanted (like spotlight data, which doesn't appear in your script, or Finder's dictionary) by using other methods. It is, however, an interesting exercise in GUI scripting, and it might enlighten a few people who are trying to solve completely different problems.
GUI scripting not needed...
Finder item properties don't have the "Where from", "colour depth", etc (basically, the mds info that Get Info shows). |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.05 seconds |
|