Showing posts with label Websites. Show all posts
Showing posts with label Websites. Show all posts

Saturday, September 12, 2009

Bulk convert HTML, RTF, etc. documents to PDF using the Mac OS X command line or an AppleScript

OS X has PDF printing support built into all applications, and this PDF support can be used from the command line or in an AppleScript script / application to convert virtually any kind of document to the PDF format.

In the example below there are five HTML files (file1.html, file2.html, …, file5.html) that have to be converted to a single PDF (all.pdf).

OS X has PDF printing support built into all applications, and this PDF support can be used from the command line or in an AppleScript script / application to convert virtually any kind of document to the PDF format.

In the example below there are five HTML files (file1.html, file2.html, …, file5.html) that have to be converted to a single PDF (all.pdf). To accomplish this on the command line, open up a new Terminal window, go to the folder the HTML files are stored in, and optionally execute this command to merge them into one file:

cat * > all.html


Next, call Apple’s ‘convert‘ utility (this is not the ‘convert’ utility related to ImageMagick) and specify the input and output filenames:

/System/Library/Printers/Libraries/convert -f all.html
-o all.pdf

The ‘convert‘ utility will build the output file and write it to the folder your Terminal shell is currently focused on. The command to convert to / from other filetypes is similar, except that you can’t ‘cat‘ the input files if they’re not text-based.

This functionality can be automated by writing an AppleScript application that makes use of the command line tool. Enter the following code into Script Editor (found in the Utilities folder in your Applications folder):

on open input_documents
repeat with this_document in input_documents
set this_document_path to POSIX path of this_document
--display dialog this_document_path
do shell script "/System/Library/Printers/Libraries/convert -f " & quoted form of this_document_path & " -o " & quoted form of this_document_path & ".pdf"
end repeat
end open

Click ‘File->Save‘ to save the script’s source code, then ‘File->Save As…‘ and change the File Format to Application to save an executeable (application) version of the script. If you drop documents on this application, it will automatically launch and create PDF copies of the documents in their source folder.






Monday, August 31, 2009

How To Lose Those Nasty Little Amazon "Click to Look Inside" Arrows

How To Lose Those Nasty Little Amazon "Click to" Arrows


You hates that crappy little Amazon "Click to LOOK INSIDE!" arrows and crap little 240x240 pixel book covers raise your hand. OK, don't bother to raise hand. But 4 u posters who get stuck with them or u D/L'erz that want better book cover pic here's easy Amazon address edit to get the nice BIG pic.



This a deaf mute tut so just follow 5 pics to show how to do hack Amazon 4 the better cover pic.



1.

This the stinkin little bugger.

2.


3.


4.


5.


6.


That's it, no rocket science/better pics nasty arrow gone. latr

Friday, July 31, 2009

How To Hack a Website-The Serious way


You can easily find the passwords of websites that require passwords in order to login.



  1. In Google Search engine enter "Enter Passwords" in order to find site which require passwords for login.
  2. Go to main menu-edit and choose View source.
  3. Here you can see the html code of the site. We are looking for the password value or password name="...".
  4. Copy the name in the " " and paste it in the field of password.
See this video for further interpretation...

Links

EasyHits4U.com - Your Free Traffic Exchange - 1:1 Exchange Ratio, 5-Tier Referral Program. FREE Advertising!
 

Comment/Chat

Followers

This Site is Designed, Developed and Maintained by Engineer Jokhio Salahuddin Kohistani
©Copyright 2009-All Rights Reserved.