Java/html: append information to html file at top, head tag

I've the following code, however I need to append to a specific location in the html doc, mainly the top, between the <head> tags. How can this be accomlished?
import java.io.*;
public class WriteToHTML {
* @param args
public static void main(String[] args) {
try
// This line sets up a document to write to
BufferedWriter document = new BufferedWriter(new FileWriter("testingHTML.html", true));
// Write to the document
document.append("Info");
System.out.println("done");
// When you are done, close the document
document.close();
catch (IOException e)
System.out.println("Error: " + e);
}

Don't cross-post. It's rude.
http://forums.sun.com/thread.jspa?threadID=5336231

Similar Messages

  • Can I remove the Edge Animate stage from the body of my HTML but keep the .js file in the head?

    Howdy,
    I have designed a couple of Edge Animations for a client to insert on a single page of their website.
    The client wants to package all .js files as one for the site to reduce the pageload - but if they do that and simply remove the stage elements from this page the animations take over the page where the stages are supposed to be.
    I am hoping it is possible to add some logic to the .js file about "if these divs don't exist, do nothing" but I do not have enough coding skill to alter these Edge Animate .js files.
    Does anyone have any suggestions?
    Thanks!

    Hi Sarah,
    Thanks for the reply.
    What my clients want to accomplish is is to package all the separate .js files for the website into one file, so all the pages load faster.
    This includes the Animate.js files which are only to be used for the home page, so of course random animations appear on the rest of the pages which don't have the animate DIVs in them.
    I have suggested they package all the .js files EXCEPT the animate.js ones and just load them separately on the page the animations are to appear on.
    But they are still wanting to do them all in one package however (!!) so my question is:
    Can some code be added to the animate.js files that says something like "if these DIVs are not found, make the animation do nothing"?
    It is possible the relevant code cannot be added in which case they will have to do the animate.js files separately, but as they have asked me about it I thought I would ask people in the forum if they knew how to accomplish this.
    Cheers,
    Jim

  • Java code to connect to WSDL file with custom header

    Hi all,
    I am an absolute noob when it comes to Java. I need to write a Java app that can connect to a WSDL file with a custom header. Basically, all I need to do is connect to the web service and pass a username and password.
    Any help would be appreciated.
    Thanks,
    A

    Better you use tools which can generate code(interface,proxy and stub classes) which can take care of calling all the WSDL defined methods..i generally use RAD not an open source as per OP use eclipse open source or netbeans which can do the trick

  • HTML link to a Flash file frame

    > This message is in MIME format. Since your mail reader
    does not understand
    this format, some or all of this message may not be legible.
    --B_3299492325_1333456
    Content-type: text/plain;
    charset="US-ASCII"
    Content-transfer-encoding: 7bit
    Hi
    I've got a client who has a HTML site on a laptop for a
    presentation and
    within this site he's wants a link that attaches to a AS2
    .swf that I've
    developed.
    The thing is it he wants it to link to specific area of the
    file and not to
    play it all. How would I do this as he's just asked for the
    specific address
    of the area it needs to jump to.
    Any help would be much appreciated bearing in mind my
    ActionScript is pure
    novice so a step by step would be handy.
    thanks
    --B_3299492325_1333456
    Content-type: text/html;
    charset="US-ASCII"
    Content-transfer-encoding: quoted-printable
    <HTML>
    <HEAD>
    <TITLE>HTML link to a Flash file frame</TITLE>
    </HEAD>
    <BODY>
    <FONT FACE=3D"Calibri, Verdana, Helvetica,
    Arial"><SPAN STYLE=3D'font-size:11pt=
    '>Hi<BR>
    I've got a client who has a HTML site on a laptop for a
    presentation and wi=
    thin this site he's wants a link that attaches to a AS2 .swf
    that I've devel=
    oped.<BR>
    <BR>
    The thing is it he wants it to link to specific area of the
    file and not to=
    play it all. How would I do this as he's just asked for the
    specific addres=
    s of the area it needs to jump to.<BR>
    <BR>
    Any help would be much appreciated bearing in mind my
    ActionScript is pure =
    novice so a step by step would be handy.<BR>
    <BR>
    thanks</SPAN></FONT>
    </BODY>
    </HTML>
    --B_3299492325_1333456--

    What do you mean about opening a flash file? Do you want the
    .fla file
    to open in flash? Or is it a swf that you imported into
    Director? Or
    is it an exe that was published from flash? Or a website that
    was
    created with Flash?
    If you are opening a .exe and you know the path to it, then
    you can use
    Director's built-in open command
    open the moviePath&"flashFile.exe"
    for most other things, I would use BuddyAPI. To open an exe,
    baRunProgram(). To open a fla or swf, baOpenFile.
    To make Director open a swf on the stage, import it and
    simply tell the
    button to go to that frame.

  • Safari 5.1 won't play .mov files using the embed tag

    Since upgrading to Lion (and Safari 5.1), any page that loads a .mov file using the <object><embed> tags gives me a "Plug-in Failure" error. If I take the HTML and load the same file using the <video> tag it works fine.
    Did Apple drop support for the embed tag? Is there something going on with my Quicktime plugin?
    Here is an example of a page with an embedded .mov:
    http://www.mediacollege.com/video/format/mpeg4/streaming/example.html
    Does this work for anyone running Safari 5.1 in Lion?

    please check to verify if you have the remains of plug-in attched to DivX and make sure you have installed quicktime plug-in by going to Safari -- Help -- Installed Plug-ins. If you ever uninstalled Divx without using Divxuninstaller, you'll meet this problem.
    Now download Divxinstaller.dmg and run it. Then you'll see the uninstaller in the corresponding application folder.
    Click uninstaller to fully uninstall Divx. Relaunch safari and enjoy!

  • Access denied (java.io.FilePermission c:\hello.html read

    hi all,
    i'm trying to run an application in web start which runs otherwise absolutely fine.i have made a tree application .if i press a link in a node it opens another page in jeditor pane which is on the other side of the split pane.every time i try to open a page it gives me the following exception
    Exception occurred during event dispatching:
    java.security.AccessControlException: access denied (java.io.FilePermission c:\Program Files\Apache Tomcat 4.0\webapps\web\hello.html read)
         at java.security.AccessControlContext.checkPermission(Unknown Source)
         at java.security.AccessController.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkRead(Unknown Source)
         at java.io.File.isDirectory(Unknown Source)
         at sun.net.www.protocol.file.FileURLConnection.connect(Unknown Source)
         at sun.net.www.protocol.file.FileURLConnection.initializeHeaders(Unknown Source)
         at sun.net.www.protocol.file.FileURLConnection.getHeaderField(Unknown Source)
         at sun.net.www.URLConnection.getContentType(Unknown Source)
         at javax.swing.JEditorPane.getStream(Unknown Source)
         at javax.swing.JEditorPane.setPage(Unknown Source)
         at browser.HelpPanel.displayURL(HelpPanel.java:156)
         at browser.HelpPanel.access$000(HelpPanel.java:37)
         at browser.HelpPanel$2.valueChanged(HelpPanel.java:74)
         at javax.swing.JTree.fireValueChanged(Unknown Source)
         at javax.swing.JTree$TreeSelectionRedirector.valueChanged(Unknown Source)
         at javax.swing.tree.DefaultTreeSelectionModel.fireValueChanged(Unknown Source)
         at javax.swing.tree.DefaultTreeSelectionModel.notifyPathChange(Unknown Source)
         at javax.swing.tree.DefaultTreeSelectionModel.setSelectionPaths(Unknown Source)
    i have given permissions for file io in jdk1.3 jre,tomcat 's catalina as well as in the java.policy file for this particular application which is in the jar folder but no use.can anybody tell me the solution.following is the content of my policy file.
    grant {
    permission java.net.SocketPermission "*:1024-65535",
    "connect,accept,resolve";
    permission java.net.SocketPermission "*:80", "connect";
    permission java.security.AllPermission;
    permission java.util.PropertyPermission "os.name", "read";
         permission java.util.PropertyPermission "os.version", "read";
         permission java.util.PropertyPermission "os.arch", "read";
         permission java.util.PropertyPermission "file.separator", "read";
         permission java.util.PropertyPermission "path.separator", "read";
         permission java.util.PropertyPermission "line.separator", "read";
    permission java.util.PropertyPermission "user.dir", "read";
    permission java.util.PropertyPermission "dir", "read";
    permission java.io.FilePermission "c:\Program Files\Apache Tomcat 4.0\webapps\web\", "read,write,execute";
    thanks

    Hi sangeeta,
    I am working on java web start and have posted a query at the following link
    http://forum.java.sun.com/thread.jsp?forum=38&thread=328294
    I read your question and I found it similar to my problem.
    I was wondering if you could temm me exactly what file you had to modify under web start and what was the line that you had to put in.
    If the question is ambiguous .... and as an after thot it does look kinda that way please lemme know.
    Thanks
    Shahid
    hi all,
    i'm trying to run an application in web start which
    runs otherwise absolutely fine.i have made a tree
    application .if i press a link in a node it opens
    another page in jeditor pane which is on the other
    side of the split pane.every time i try to open a page
    it gives me the following exception
    Exception occurred during event dispatching:
    java.security.AccessControlException: access denied
    (java.io.FilePermission c:\Program Files\Apache Tomcat
    4.0\webapps\web\hello.html read)
    at
    java.security.AccessControlContext.checkPermission(Unk
    own Source)
    at
    java.security.AccessController.checkPermission(Unknown
    Source)
    at java.lang.SecurityManager.checkPermission(Unknown
    Source)
    at java.lang.SecurityManager.checkRead(Unknown
    Source)
         at java.io.File.isDirectory(Unknown Source)
    at
    sun.net.www.protocol.file.FileURLConnection.connect(Un
    nown Source)
    at
    sun.net.www.protocol.file.FileURLConnection.initialize
    eaders(Unknown Source)
    at
    sun.net.www.protocol.file.FileURLConnection.getHeaderF
    eld(Unknown Source)
    at sun.net.www.URLConnection.getContentType(Unknown
    Source)
         at javax.swing.JEditorPane.getStream(Unknown Source)
         at javax.swing.JEditorPane.setPage(Unknown Source)
         at browser.HelpPanel.displayURL(HelpPanel.java:156)
         at browser.HelpPanel.access$000(HelpPanel.java:37)
    at
    browser.HelpPanel$2.valueChanged(HelpPanel.java:74)
    at javax.swing.JTree.fireValueChanged(Unknown
    Source)
    at
    javax.swing.JTree$TreeSelectionRedirector.valueChanged
    Unknown Source)
    at
    javax.swing.tree.DefaultTreeSelectionModel.fireValueCh
    nged(Unknown Source)
    at
    javax.swing.tree.DefaultTreeSelectionModel.notifyPathC
    ange(Unknown Source)
    at
    javax.swing.tree.DefaultTreeSelectionModel.setSelectio
    Paths(Unknown Source)
    i have given permissions for file io in jdk1.3
    jre,tomcat 's catalina as well as in the java.policy
    file for this particular application which is in the
    jar folder but no use.can anybody tell me the
    solution.following is the content of my policy file.
    grant {
    permission java.net.SocketPermission
    ion "*:1024-65535",
    "connect,accept,resolve";
    permission java.net.SocketPermission "*:80",
    0", "connect";
    permission java.security.AllPermission;
    permission java.util.PropertyPermission
    ssion "os.name", "read";
    permission java.util.PropertyPermission "os.version",
    "read";
    permission java.util.PropertyPermission "os.arch",
    "read";
    permission java.util.PropertyPermission
    "file.separator", "read";
    permission java.util.PropertyPermission
    "path.separator", "read";
    permission java.util.PropertyPermission
    "line.separator", "read";
    permission java.util.PropertyPermission
    ssion "user.dir", "read";
    permission java.util.PropertyPermission "dir",
    dir", "read";
    permission java.io.FilePermission "c:\Program
    ogram Files\Apache Tomcat 4.0\webapps\web\",
    "read,write,execute";
    thanks

  • Can i import java fx in jsp or html?

    can i import java fx in jsp or html?

    coolsayan.2009 wrote:
    just to test i did rigt-click on my web-based jsp project project->new item->other->javaFX stage and wrote the example code like:
    but got all red under lined word in all the lines what to do???Ouch! Not being familiar with NetBean, I am not sure, but I fear you mix stuff.
    "web-based jsp project" => so you write JSP or HTML stuff there, no? Like including the dtfx.js file and putting the javafx({ ... }) call in the proper places.
    "wrote the example code like (JavaFX code)" => Maybe it should be in a separate JavaFX project? Then generate the .jar file and use it in the above project.
    Now maybe I am misleading (if there is a a JavaFX stage in new items of the projects, perhaps NB allows it?) so I hope somebody knowing NB better than me will help you.
    Just in case: JavaFX code goes to .fx files; you cannot embed JFX code in JSP pages.

  • I want to display html textbox information in worddoc when i click submit

    hi ,
    my problem is i want to display html textbox information in worddoc when i click on submit button. i want do open word doc when i perform submit
    please help its very urgent.
    Thanks.
    Raj

    Send the request to a servlet, make it create the doc file, set the response MIME type and stream the file through the response's output stream to show it in the Office IE plug-in.

  • How to use Swing html to parse a html file..

    I am currently working on a project in java.i need to read a Html file, extract the table tag along with its contents if it has a button embedded in it and replace it with another code..
    i tried it with Reg Ex in java but in vain.. Any help is great... I need an idea of how to use Html parser for this prob.. any examples will be fine..

    Run the program from command line, this way you will see the errors, if any.
    example.: java -jar theJarfile.jar
    I was successful in creating a comm application. I placed the win32com.dll in the same directory of my application jar file and all worked.
    I also extracted the comm.jar , and jar'd my app with the extracted comm files to make one jar.
    I also had a fileWriter() to get the clients jre path and my app would write the javax.properties file to the correct place.
    It took me severel weeks and late nights to accomplish this, but it was all necessary to be able to install only my app, and not a bunch of api's that were needed.

  • Locate and Load an HTML page from a Jar file

    Hello Everyone.
    I recently wrote a Java Swing application and placed it in an executable jar format.
    I can locate the icons and images like so:
    Image myImg = Toolkit.getDefaultToolkit().getImage(getClass().getResource("some.jpg"));
    setIconImage(myImg);
    However one of the popup frames require the loading of an HTML page in the jar file which when its not in a jar file is accomplished as follows.
    String url = "file:" + System.getProperty("user.dir") System.getProperty("file.separator")"some.html";
    try{
    thePane.setPage(url);
    catch(Exception ex){ex.printStackTrace();}
    Can anyone tell my how to make the frame locate this HTML file when it is in the jar file???????

    For applications, my favorite is the Classloader.
    URL url = Classloader.getSystemResource("some.resource");
    This can be used for any resource; images, sounds, files, you name it...
    -Ron

  • Converting SPool information into HTML Format

    Hi Friends,
    How to Converting SPool information into HTML Format
    and send this HTML INFORMATION INTO MAIL..
    can anyone send program for this issue pls.
    it is an urgent issue
    regards,

    Hi Rich,
    once again thanks for your kindly reply.
    but i am developing below Code.. that HTMAL AATCHMENTS ARE NOT COMING IN MAIL.
    PLS can you you verify the below code.
                           DATA DECLARATIONS                             *
    DATA: I_LIST   LIKE ABAPLIST OCCURS 0  WITH HEADER LINE,
          VARIANT  LIKE RSVAR-VARIANT,
          DOC_CHNG  LIKE SODOCCHGI1,
           RECLIST LIKE SOMLRECI1  OCCURS 5  WITH HEADER LINE,
    data:  spoolid    type tsp01-rqident.
    DATA IT_MAIL LIKE TSP01 OCCURS 0 WITH HEADER LINE.
    data  report_html like W3HTML  OCCURS 0 WITH HEADER LINE.
    DATA: G_ICONS(32) OCCURS 10 WITH HEADER LINE.
    DATA LISTOBJECT LIKE ABAPLIST OCCURS 0 WITH HEADER LINE.
    DATA  sent_to_all like sonv-flag.
    data : RECEIVER(30),
          spoolid    type tsp01-rqident,
           it_buffer like SOLI occurs 10 with header line.
    data: list type table of  abaplist with header line.
    data: htmllines type table of w3html with header line.
    data: maildata   like sodocchgi1.
    data: mailtxt    like solisti1 occurs 10 with header line.
    data: mailrec    like somlrec90 occurs 0  with header line.
                           TABLE DECLARATIONS                            *
    TABLES : TSP01.
                               SELECTION-SCREEN                          *
    SELECTION-SCREEN: BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    SELECTION-SCREEN: SKIP.
    PARAMETERS : RQ2NAME LIKE TSP01-RQ2NAME .
                RQIDENT like TSP01-RQIDENT.
    SELECT-OPTIONS :  S_RECVR FOR RECEIVER  NO INTERVALS.
    SELECTION-SCREEN: SKIP.
    SELECTION-SCREEN: END OF BLOCK B1.
                               START-OF-SELECTION                        *
    START-OF-SELECTION.
    PERFORM SEND_TO_SPOOL.
      PERFORM GET_SPOOL_ID.
      loop at it_mail.
        PERFORM CONVERT_SPOOL_TO_PDF.
        PERFORM SEND_MAIL.
      endloop.
    Save the list
      call function 'SAVE_LIST'
           tables
                listobject         = list
           exceptions
                list_index_invalid = 1
                others             = 2.
    *&      Form  GET_SPOOL_ID
          Getting the Latest Spool Request Number
    FORM GET_SPOOL_ID.
      SELECT *
            FROM TSP01 INTO TABLE  IT_MAIL
           and   RQIDENT    = RQIDENT.
              WHERE  RQ2NAME   =  RQ2NAME .
    ENDFORM.                    " GET_SPOOL_ID
    *&      Form  CONVERT_SPOOL_TO_PDF
          Converting the Spool to PDF Document
    FORM CONVERT_SPOOL_TO_PDF.
    *--Assigning the Spool number
    WRITE :/ IT_MAIL-RQIDENT.
    spoolid = IT_MAIL-RQIDENT.
    *--Converting the Spool to PDF
    CALL FUNCTION 'RSPO_RETURN_ABAP_SPOOLJOB'
      EXPORTING
        RQIDENT                    =  spoolid
      FIRST_LINE                 = 1
      LAST_LINE                  =
      TABLES
        BUFFER                     = it_buffer
    EXCEPTIONS
      NO_SUCH_JOB                = 1
      NOT_ABAP_LIST              = 2
      JOB_CONTAINS_NO_DATA       = 3
      SELECTION_EMPTY            = 4
      NO_PERMISSION              = 5
      CAN_NOT_ACCESS             = 6
      READ_ERROR                 = 7
      OTHERS                     = 8
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    LISTOBJECT = IT_BUFFER.
    CALL FUNCTION 'WWW_HTML_FROM_LISTOBJECT'
    EXPORTING
      REPORT_NAME         =
       TEMPLATE_NAME       = 'WEBREPORTING_REPORT'
      TABLES
        HTML                = report_html
        LISTOBJECT          = LISTOBJECT
       LISTICONS           = G_ICONS.
    ENDFORM.                    " CONVERT_SPOOL_TO_PDF
    FORM SEND_MAIL.
    call function 'WWW_LIST_TO_HTML'
           tables
                html = htmllines.
    maildata-obj_name = 'TEST'.
      maildata-obj_descr = 'Test Subject'.
      loop at htmllines.
        mailtxt = htmllines.
        append mailtxt.
      endloop.
    LOOP AT S_RECVR.
    reclist-receiver = S_RECVR-LOW.
    reclist-rec_type = 'U'.
    append reclist.
    call function 'SO_NEW_DOCUMENT_SEND_API1'
           exporting
                document_data              = maildata
                document_type              = 'HTM'
                put_in_outbox              = 'X'
           tables
                object_header              = report_html "mailtxt
                object_content             = mailtxt
                receivers                  = reclist "mailrec
           exceptions
                too_many_receivers         = 1
                document_not_sent          = 2
                document_type_not_exist    = 3
                operation_no_authorization = 4
                parameter_error            = 5
                x_error                    = 6
                enqueue_error              = 7
                others                     = 8.
      if sy-subrc = 0.
    write 'mail sent'.
      endif.
    ENDLOOP.
    regards,
    venu.

  • Java write/append to each line of a text file

    I have spent numerous hours trying to figure out what I am doing wrong. If anyone more experienced could tell me what is wrong with my code.
    I have a very simple text file with 5 lines:
    line1
    line2
    line3
    line4
    line5
    All I am trying to do is append some string to the end of each of those lines. Everytime I run my code, it erases all content but does not write/append anything to the file. Any help is greatly appreciated.
    Thanks! I am about to throw this monitor out the window!!
    package Chapter6;
    import java.io.*;
    public class fileNavigation2 {
         public static void main(String[] args) {
              File dir = new File("C:\\testing");
              System.out.println(dir.isDirectory());
              try {
                   File file = new File(dir, "Test.txt");
                   FileReader fr = new FileReader(file);
                   BufferedReader br = new BufferedReader(fr);
                   FileWriter fw = new FileWriter(file);
                   BufferedWriter bw = new BufferedWriter(fw);
                   String s = "Add1,";
                   String s2 = "Add2\n";
                   String str;
                   while((str = br.readLine()) != null) {
                   StringBuffer sb = new StringBuffer(str);
                   sb.append(s + s2);
                   String y = sb.toString();
                   System.out.println(sb);
                   System.out.println("Appending");
                   bw.write(y);
                   bw.close();
                   System.out.println("Done");
              }catch(IOException e) {}
    }

    First, thanks a lot for your feedback. The code makes a lot of sense but it does not update the content of my Test.txt file.
    I only edited the line of code that creates the new file so that it could find the location of the file.
    Scanner file = new Scanner(new File("C:\\testing",fileName));==============================
    The code now looks like:
    import java.io.*;
    import java.util.*;
    public class Main {
        static void appendTo(String fileName, String[] newLines) throws IOException {
            List<String> allLines = getLinesFrom(fileName);
            for(String line : newLines) {
                allLines.add(line);
            writeLinesTo(fileName, allLines);
        static List<String> getLinesFrom(String fileName) throws IOException {
            List<String> lines = new ArrayList<String>();
            Scanner file = new Scanner(new File("C:\\testing",fileName));
            while(file.hasNextLine()) {
                lines.add(file.nextLine());
            file.close();
            System.out.println(lines);
            return lines;
        static void writeLinesTo(String fileName, List<String> lines) throws IOException {
            BufferedWriter out = new BufferedWriter(new FileWriter(fileName));
            for(String line : lines) {
                out.write(line);
                out.write(System.getProperty("line.separator"));
            out.close();
        public static void main(String[] args) {
            String fileName = "Test.txt";
            String[] extraLines = {
                    "a new line",
                    "and yet another new line"
            try {
                appendTo(fileName, extraLines);
                System.out.println("Done.");
            } catch (IOException e) {
                e.printStackTrace();
    }Again, thanks for the help.

  • Create HTML that links 100 PDF files in a folder

    I would like to publish my wife's recipes on our website, hoping she can then have access from the iPhone. I have about a 100 and really don't want to use iWeb to create 100 hyperlinks to a file, especially since she is continuously adding recipes.
    Does anyone have a hint that could help generate such a page?

    Does anyone have a hint that could help generate such a page?
    Try AppleScript, it's easier than you think. Here is a short script:
    -- start script
    on run
        tell application "Finder"
            -- ask for folder contains PDFs
            set recipesFolder to choose folder with prompt "Please select the folder that contains recipe PDFs"
            -- get all files name
            set recipeFileNames to name of every file in recipesFolder whose name extension is "pdf"
            -- convert folder path to POSIX so can be used with Unix command
            set posixFolderPath to POSIX path of recipesFolder
        end tell
        set DOCTYPE to "<?xml version=\"1.0\" encoding=\"UTF-8\"?><!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\"><html xmlns=\"http://www.w3.org/1999/xhtml\"><head><title>My Recipes</title></head><body>"
        set closeTags to "</body></html>"
        -- write DOCTYPE
        do shell script "/bin/echo " & quoted form of DOCTYPE & " > " & quoted form of (posixFolderPath & "My Recipes.html")
        -- write page title
        do shell script "/bin/echo " & quoted form of "<br/>My Recipes<br/><br/>" & " >> " & quoted form of (posixFolderPath & "My Recipes.html")
        repeat with recipeFileName in recipeFileNames
            -- write recipes entries
            do shell script "/bin/echo '<li><a href=\"" & recipeFileName & "\">" & recipeFileName & "</a><br/>'" & " >> " & quoted form of (posixFolderPath & "My Recipes.html")
        end repeat
        -- write close tags
        do shell script "/bin/echo " & quoted form of closeTags & " >> " & quoted form of (posixFolderPath & "My Recipes.html")
    end run
    -- end script
    Launch Script Editor, it can be found in /Application/AppleScript/ folder, copy& paste the script, I added comments above each line. You can run the script from Script Editor or save it as an application (File menu --> Save as..). Run the script, it'll do the following:
    1) prompt you to locate the folder which contains the PDFs
    2) make 'My Recipes.html' file in the same folder, that way you can upload the whole folder to you host.
    Be sure you *do not* have any file with the name 'My Recipes.html'.
    *If you're unsure of anything post back or make back up your important stuff (aka everthing you home folder).*
    Now, the script generates a very raw page with a list of PDF files and links to them.
    But potentially, AppleScript can generate html page with different catagories... such as: vegan, veggies or carnivore dishes... or French, Thai or Indonesian dishes... etc, etc... great for searching!
    But, you need to add those key words in the PDF file's Spotlight Comments (in Finder select an item, then hit command+i, you'll see comments field at the top on info pane).
    Spotlight Comments is meta data for Finder to find things (data base indexing).
    Lastly, you can automate all these by using AppleScript's Folder Action

  • Use PHP to convert html page to a pdf file for email

    I want to use my php scripts to send an email (with a pdf attachment) of the web page that is being viewed.
    My problem I have no way to convert the html page to a pdf file without the end user being prompted to (1) naming the file (2) saving it
    Is there a program or a way i can save the html as "auto_name.pdf" file on the server without user input?
    I have Adobe Acrobat 6.0 Professional on server

    There are lots of good Html to Pdf conversion tools for developers, both free and paid. I'd suggest to take a look at PD4ML Html to Pdf converter - it has lots of features (CSS support, page layout presets, etc.) and can be obtained for free for non commercial usage. There is also a topic at Stackoverflow with a list of such converters.

  • Cannot checkin/checkout html, js, txt, and jsp files in MS Sharepoint Workspace 2010

    I am having issues checkin/checkout html, js and jsp files in Microsoft Sharepoint Workspace 2010. I can access (checkin/checkout) any files in the actual Sharepoint site, but when I am synchronized to the site in Sharepoint Workspace 2010 I cannot access
    html, js, and jsp files. When I try to checkout a html file, a message pops up saying:
    "Can not perform this operation. This document has been checked out or may no longer exist."
    Could this be a synchronization issue, or was Sharepoint Workspace 2010 not design to work with html, js, txt, and jsp files?

    Hi Armando,
    I'm afraid that you posted your question on the wrong forum. This forum is intended for Project Server questions. Please go to this forum in order to have answers from experts: 
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/home?category=sharepoint&filter=alltypes&sort=lastpostdesc
    Cheers.
    Guillaume Rouyre - MBA, MCP, MCTS

Maybe you are looking for

  • Time machine and file organization

    Does time machine: Store everything into one file Make an special folder and stores files in there Make an special folder and makes subfolders and then stores it in the subfile or Stores all backed up files on to the external HDD with no organization

  • Libxml/xmlstring.h not found

    Hi I am developing a sample application using iphone sdk in which I have to parse xml. If I import <libxml/xmlstring.h> or any .h file from libxml I am getting compilation error libxml/xmlstring.h not found. I have already added libxml2.2.dylib in fr

  • Can I get a stepper motor to work useing an AO channel on a DAQ card?

    Can I get a stepper motor to work useing an AO channel on a DAQ card? I know its a very low currentl coming out, but what Im going to be using the motor for is very weak. Has anyone tried this before? I certinaly dont want to spend 2,000+ on somthing

  • Failed to load Main-Class manifest attribute from

    hi all i created jclient swing based one form. and in this form i use BC4j and database employee table. when i run this java file from jdeveloper it works fine. when i deploy this project in simple archive jar file it gives me the above error. my app

  • My computer gives me problems on start up

    These are the things it will do. 1- monitor will not recieve signal. 2- it will start but then suddenly shut down and start up again. 3- will turn off and do a system dump (or something like that). When it finally starts working again after turning i