|
|
BUG Fix - Posix Path not enough
[reposted for correct formatting]
Posix Path used to include escaped characters so spaces, etc would survive on the shell. In OS X 10.2, at least (and maybe elsewhere), you need to use quoted form of Posix Path, rather than just Posix Path:
With just Posix Path you'll get errors whenever the path includes something the shell doesn't like.
BUG Fix - Posix Path not enough
If you add the "quote form" to the Posix make sure you modify your scripts accordingly. For instance the .ps -> .pdf filter/opener I gave will stop working. That's because I added the quotes myself. If you want to use that filter I wrote change it to:
on open input_file do shell script "export PATH="$PATH":/sw/bin;ps2pdf" & POSIX path of input_file & " /tmp/.psview.tmp.pdf" do shell script "open /tmp/.psview.tmp.pdf" end openNote that I also change the location of the temporary file to be in the /tmp directory. That directory deletes all files older than two weeks. So it is a good place to put a .pdf file rather than hidden in you home directory. That may save you are few hundred k. |
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.09 seconds |
|