|
|
Can't Save Script?
Thank you for the very detailed hint. When I paste the script into the script editor and attempt to save as an applet, I get an error message. It states that the script can not be compiled, so it can only be saved as a text file...
Re: Can't Save Script?
You'll need to click on "Check Syntax" in Script Editor before it will allow you to save the script as anything but a text file. Also, there does appear to be a mistake in my script. The following line: do shell script "txt2pdbdoc "" & newName & "" /tmp/" & quoted form of the POSIX path of (newName & ".txt") & ¬
should be: do shell script "txt2pdbdoc \"" & newName & "\" /tmp/" & quoted form of the POSIX path of (newName & ".txt") & ¬
Sorry for the inconvenience.
Further Correction
It seems I'm having trouble getting that line to display correctly (although it looks just fine when I preview it). I guess I'll just have to try it another way. This line: do shell script "txt2pdbdoc ¶"" & newName & "¶" /tmp/" & quoted form of the POSIX path of (newName & ".txt") & ¬
is the correct line, only change the paragraph marks (¶) to backslashes (\).
Getting closer
Thank you for the hint. I got the script saved as an executable. When I print, the script stops abruptly and says, "Can't make "txt2pbddoc" into a real" (and the word "real" is in blue). |
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 |
|