Ken,

I was curious about this and copied this text with correct line break into a button in a new stack and and threw up a blank text field and hit the button and nothing happened. What else am I missing to test this?

Thanks
Tom

On Wednesday, October 29, 2003, at 01:40 AM, Ken Ray wrote:

Here's a way from our friends over at the SuperCard list (modified for
Rev use, of course)... seems to work for text files and images (watch
the line breaks):

on mouseUp
  answer file "Select a file:"
  if it <> "" then
    put it into tSrcPath
    put tPath & ".pdf" into tDestPath
    put "/System/Library/Printers/Libraries/convert" into tConvertApp
    get shell(tConvertApp && "-f" && tSrcPath && "-o" && tDestPath &&
"-j application/pdf 2>&1")
  end if
end mouseUp

If you check the results from the shell() it may have error messages in
it, but it seems to still create the PDF.

Ken Ray
Sons of Thunder Software
Email: [EMAIL PROTECTED]
Web Site: http://www.sonsothunder.com/

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
J. Landman Gay
Sent: Tuesday, October 28, 2003 10:45 PM
To: Revolution Mailing List
Subject: Scripting PDF files


OS X has a "Save as PDF" option in the print dialog. Does anyone know of a way to automate this, so a script could save a printout as a PDF? Or is there any other way to create a PDF?

--
Jacqueline Landman Gay         |     [EMAIL PROTECTED]
HyperActive Software           |     http://www.hyperactivesw.com


_______________________________________________ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-> revolution



_______________________________________________
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Thomas J McGrath III Advanced Media Group

220 Drake Rd.
Bethel Park, PA 15102
[EMAIL PROTECTED]


_______________________________________________ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to