|
|
A Perl script to manage file types and creators
The scripts I've seen in this thread are safe for filenames that contain space, but dangerous for filenames that contain single-quote or backslash, and sadly they're needlessly dangerous.
Please remember... instead of backquotes, you really want code like:
Then, everything is safe, as the names are passed from parent to child without hitting the shell.
I'm willing to preview any Perl script posted here before posting for security and best practice. Please give me a couple of days, and email it to merlyn@stonehenge.com and mention macosxhints. Thanks.
A Perl script to manage file types and creators
Thanks for the tip. Actually, I fail to see the advantage this script provides over the standard SetFile command, SetFile -c "R*ch" -t "TEXT" *.html
What would be the advantage in using this script instead?
A Perl script to manage file types and creators
Advantages over SetFile/GetFileInfo: |
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.06 seconds |
|