Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Re: Can't Save Script?' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Re: Can't Save Script?
Authored by: robm3660 on Feb 27, '03 11:59:10AM

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.



[ Reply to This | # ]
Further Correction
Authored by: robm3660 on Feb 27, '03 12:12:20PM

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 (\).



[ Reply to This | # ]
Getting closer
Authored by: Deut3221 on Feb 27, '03 08:11:45PM

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).

When I click 'edit', the Script opens, and it is stopped in the middle of the following line with the first words " & newName & " highlighted blue.

do shell script "txt2pdbdoc " / " & newName & " / " /tmp/" & quoted form of the POSIX path of (newName & ".txt") & ¬

I logged into the root directory and looked in the temp file, and a text file is being created. However, it is not being converted into a doc file.

Like I said, I'm over my head in the deep end ... cluess how to swim :) Seems as if either (1) I still don't have the script quite right; or (2) the txt2pdbdoc script is not working. I'm not sure how to test out either option. Call me cluess! Thanks again for your patience and help.



[ Reply to This | # ]