|
|
A cleaner and safer alternative
Nice solution, but it does require running Finder. Is there any way to access this information via python (or perl, or whatever) and direct system calls rather than by invoking Finder? Having to run a GUI-based app to get information used in a command-line script seems inelegant at best. If you can get at this information via a C program it should be available via something like python (if someone has written the necessary code).
A cleaner and safer alternative
I was thinking the same thing, actually, when I first started using Tiger.
The closest command line tool that can help is Tiger's
Unfortunately, while I still have the remnants of the perl script that I started writing back then to do what this particular script does. I'm not happy having to run oascript to get the reference to an alias...
(By the way, the Spotlight attributes can be used in the shell script above to verify that the file passed to —lar3ry |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks 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 |
|