|
|
|
dangerous script
Whenever you do POSIX path in an applescript and you want to pass the results to something you do from the shell, you need to escape it. The way to do that is with the "quoted form of" recipe. Beyond that the original script is dangerous since it evaluates the unescaped path which could have commands in it.
Anyway here is an improved script that also fixes that mistake.
dangerous script - actually not
Since this uses the form "``" instead of just `` that aspect of the original script is okay. No word splitting etc happens in that case. For example:
So it is not incorrect, nor is it dangerous precisely because it DOES not do an eval. I feel pretty dumb now.
|
SearchFrom our Sponsor...Latest Lion HintsWhat's New:HintsNo new hintsComments last 2 days
Links last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2013 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Powered by Geeklog Created this page in 0.09 seconds |
|