19
Jan/09
0

Document(s) to PDF

Update: This application has been updated so you can select from a list of supported option to convert your documents to. New Post

On Mac OS X you have the ability to write your own applescripts and save them as applications. In this article we will create an application that will allow to drop any amount of documents on it and it will create a pdf out of each document that you have dropped on it.

The application consists of 2 major parts. One to catch all the files dropped on it and another to process each file.

Read the code below, I think it’s pretty straight forward on how it does what it’s supposed to.

Note: Code has been updated click link above for new code post.

Note1: Your file names must have only 1 dot because the application reads the filename up to the first dot.

Note2: You must a folder named temp on your desktop for the application to save the created files.

Note3: If you would like to convert the documents to another format, ie: rtf, txt, change pdf at line 10 to txt let’s say.

Here is the complete application ready to be used.

Comments (0) Trackbacks (0)

No comments yet.

Leave a comment

Note: This post is over a year and a half old. You may want to check later in this blog to see if there is new information relevant to your comment.

By submitting a comment here you grant this site a perpetual license to reproduce your words and name/web site in attribution.


No trackbacks yet.