Converting from HTML to php

Generally Dreamweaver provides good support for changes to
templates, and
automatically updates all the files using a particular
template when you change
that template. However this breaks down if you change a
template, or a file, to
.php. Dreamweaver regards this as creating a new file, and
does not offer to
update links.
My master template was basicpage.dwt. I created a new dynamic
page, copied the
guts of basicpage.dwt into it, and then saved it as basic
page.dwt.php.
I didn't really expect Dreamweaver to recognise that this was
replacing
basicpage.dwt, but when I opened the template directory I was
surprised to find
that it did not show the extensions, just two files
basicpage. So I renamed
basicpage.dwt.php to basicphpage.dwt.php so I could tell them
apart. Then I
opened index.htm, attached it to basicphpage.dwt.php,
inserted some php to
verify that it worked and resaved it as index.php. I uploaded
to my file server
and verified that the php worked. I also found that my host
system loaded
index.php by default.
Next I opened one of the existing subsidiary templates,
attached it to
basicphpage.dwt.php, and resaved it. Dreamweaver saved it
with the correct
extension, but again did not recognise that I had changed the
template.
Next I opened one of the dependent files, attached it to the
new template, and
resaved it. Again Dreamweaver regarded this as creating a new
file, and did not
offer to update links. So when I convert each template I will
then have to open
every existing page using it, manually attach the new version
of the template to
it, and manually update all the links in it, or referring to
it. Drat!
It looks as if I should only convert those pages which I want
to be dynamic, and
only do so when I am ready to add the new functionality.
Clancy

Yeah. Clancy only wants to hear his truth....
No offense, Clancy, but my dogma beats your dogma.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"(_seb_)" <[email protected]> wrote in message
news:[email protected]...
> sorry for the dogma. I'll stop
>
> (_seb_) wrote:
>> I sure do get your point. learning all that stuff is
rather boring in
>> itself. That's what I've told myself for years,
until I dived into PHP
>> (with a book at first, but now I just go to
>>
http://us3.php.net/manual/en/)
whenever I need to learn something new.
>>
>> Once I did, and once I managed to setup a local
testing server on my
>> machine, I was surprised at how easy it was to learn
the basic stuff that
>> allows content architecture management. It took me
about two weeks to
>> learn the most useful techniques (how to generate
html code with php, how
>> to include remote files, how to use arrays, how to
use conditionals).
>>
>> Now that I know that, I enjoy building websites much
more, and I can do
>> it much faster. For one thing, you say you have 'a
total of 300 to 400
>> pages'. That's a problem with static sites. Pages
number has become an
>> irrelevant concept since I use PHP. My sites rarely
have more than 10
>> 'pages', even if the visitor can navigate through
vast ammounts of
>> content. Because PHP templates allow me to generate
pages on the fly,
>> depending on what content needs to be displayed, so
I can add content
>> without having to build new pages... That's a lot of
fun to build sites
>> that way. I also can offer much more to my clients
in terms of
>> flexibility and content management, which allows me
to charge them
>> more... Website maintenance is a breeze. If I had
known what
>> possibilities it would open and how it would
optimize my workflow, I
>> wouldn't have waited so long to dive into it.
>>
>> But of course there is a time for everything. I just
couldn't recommend
>> anything more than learning a server-side language,
to anybody who wants
>> to make a living of webdesign (and have fun doing
it).
>>
>> Clancy wrote:
>>
>>> "(_seb_)" <[email protected]> wrote:
>>>
>>>
>>>> if you use PHP I don't see why you would use
Dreamweaver templates.
>>>> You can do with PHP more, better, and fatser
in terms of content
>>>> architecture (i.e. really functional
templates) than what DM templates
>>>> can do. AND, your dynamic PHP templates
won't be dependent on
>>>> Dreamweaver's UI.
>>>
>>>
>>>
>>> I have been working on my several web sites for
about four years now,
>>> and
>>> probably have a total of 300 to 400 pages. These
work, I think they
>>> look
>>> attractive, and user feedback has been
favorable. If I had nothing
>>> better to do, I could probably spend a year or
so working out
>>> how to do the same job without using templates.
The resulting new
>>> design MIGHT
>>> be significantly easier to modify, and perhaps
even to maintain, but the
>>> new
>>> pages would probably look much the same (I like
the way they look now!),
>>> and I
>>> very much doubt if the visitor would notice the
difference.
>>> I can see that there are a number of minor
improvements I will be able
>>> to make
>>> to my sites, once I have mastered php and mysql,
but the one major
>>> incentive I
>>> have for learning them is that I have a number
of photo albums, and it
>>> will be
>>> much easier to add new photos once I have set up
a database. I have
>>> already passed my biblical 'use by' date, and I
don't feel that I have a
>>> year to throw away just to make my web sites
comply with someone else's
>>> dogma.
>>> I have a lot more material I would like to add
to my various web sites,
>>> and I
>>> feel that this would be a much more profitable
use of my remaining time,
>>> to say
>>> nothing of it being much more fun.
>>>
>>>
>>> Clancy
>>
>>
>>
>
>
> --
> seb ( [email protected])
>
http://webtrans1.com | high-end web
design
> Downloads: Slide Show, Directory Browser, Mailing List

Similar Messages

  • How to Convert From HTML to XLS?

    Trying to convert a file from a local county government that uses Microsoft to my desktop.  I was told I need to convert the HTML to a zip file and I might need additional software.  Help?

    You're going to have to explain a bit more about what it is you need to convert and what you need to convert it to. An HTML file is a web page, an XLS is an Excel spreadsheet file, and a Zip file is a compressed archive. So as described in your initial post it's not at all clear, at least to me, what it is you need to accomplish.
    Regards.

  • Header & Footer in pdf file converted from html

    I am using Acrobat Professional on WinXP and Firefox.
    This is the first time I tried to convert a saved html file to pdf and it works. However the converted file have the html pagename at the header and the filename, location, date created at the footer of every page. Is there a way to set the conversion settings to not display these information in the comverted pdf file?
    Thanks.

    File > Create PDF > From Web Page...
    Press the button Settings... and change the settings.

  • Convert from HTML Character Codes in Applescript

    Hey everyone,
    I have an applescript that retrieves some info from websites, but sometimes parts of the information are encoded into HTML Character codes for web compatibility. Could someone point me in the right direction to processing these into plain simple text? Has somebody already written a tool? Sorry, I'm very new to this, but willing to learn.
    Thanks in advance.
    Jason

    This should to the job. Thx apple =)!
    <pre style="margin: 0px; border: 1px solid #aaa; width: 800px; color:#000; background-color: #ccc; overflow: auto; font-family: Verdana, Monaco, monospace;"> set web_url to quoted form of "http://discussions.apple.com/thread.jspa?threadID=2244400&tstart=0"
    *do shell script* "curl " & web_url & " | textutil -stdin -convert txt -format html -stdout"</pre>

  • Converting from Html DB tables to PDF.

    We have an application running in Apex 2.2.1 against a 9i database. This application stores text, images and other table data in the database. We take this data and make a report to display in an HTML DB. Are there any Oracle tools to extract this same data and make a PDF or Word document?
    Thanks,
    Kirk

    Hi Kirk,
    I assume you want to push the contents of a db table out to a PDF document. I am not sure about the images in the db table, but apart from that, I can see two ways of doing this.
    1. Use APEX and Apache FOP see
    http://www.oracle.com/technology/pub/notes/technote_htmldb_fop.html
    This was written for version 1.6, but should hold true in 2.2.1 I believe.
    2. Take a look at www.utlpdf.com for generating PDF inside database
    You may also be interested that Product Management and Development are trying to get the same natively in APEX. See Client Statement of Direction (http://www.oracle.com/technology/products/database/application_express/2006_sod.html)
    Regards,
    Sunny.

  • Call JavaApplet from HTML/Javascript/Php on the button click

    Hello guys!
    I have a JAR file, to establish telnet sessions. Everything is working with this simple piece of HTML code:
    <html>
    <body>
    <applet CODEBASE="."
    ARCHIVE="Telnet.jar"
    CODE="Telnet.Applet"
    WIDTH=500 HEIGHT=300>
    </applet>
    </body>
    </html>
    But there is something more. :)
    I wan't to make a network topology with MS Visio , click on the Router, Switch or on the Firewall icon , and just then run that Java applet.
    I can't find any good example how to achieve this. Maybe this is possible by running Java Applet from Javascript ? Etc. "onClickButton" ?
    Thank you for your time and your answers.
    Any help is highly appreciated!

    Dear programmers,
    could you take a look there, this is a real world example.
    login there with username: test12345 and password: test12345
    http://e-learning.nil.com/
    Then go there, and press "start lab"
    http://e-learning.nil.com/C1257448003E0C9B/ep?readform&pid=lab&code=PA8VVMC3MNT
    Click on the router icon, telnet application will show up.
    If not , go to profile-> devices access, choose " use java applet".
    How this is done without JNLP? Without downloading JNLP file? Java applet shows up like an application, and not in the new browser window?
    Thank you very much for your time!

  • Convert DW html pages to PHP in Dreamweaver CS4

    Created web pages in DWCS4 in html but discovered because I need some form pages to interact with MySQL that I should have created pages using DW PHP format. Is there a simple way to convert all html pages to php using dreamweaver CS4? OS is Win XP. Have access to hosting company with MySQL, PHP,PHPAdmin.

    I would recommend against Nancy's suggestion here (and it's REALLY weird to see myself typing that).
    I say it only because you are working within an existing site that likely already has links going to the .html file you are changing.
    If you do a Save As and create a new .php file based on the still existing .html file, you will need to manually change the links on the pages that are currently pointing to the that .html file so they will point to the new .php file. You would need to either open the pages individually and fix the links, or use DW's Find & Replace feature and do a site-wide correction.
    However, if you change the file extension from within the Files tab instead, DW will  update any pages that link to it automatically.

  • Converting a html template to php

    How do I convert my html template to a php template? Any help
    would be appreciated.
    Thanks

    You do not need to do anything.
    "foo.dwt" can be used to create HTML, or PHP child pages.
    If you really want to do it, though, you can rename foo.dwt
    to foo.dwt.php
    (using DW's Files panel) and let DW adjust the pages
    accordingly.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "littlemax" <[email protected]> wrote in
    message
    news:f1sodn$6kb$[email protected]..
    > How do I convert my html template to a php template? Any
    help would be
    > appreciated.
    >
    > Thanks

  • How to convert from xml file to html using java code

    How to convert from xml file to html file using java code

    Get yourself Apache Xalan or Saxon or some XSLT processor
    String styleSheet = "/YourXSLTStylesheet.xsl";
    String dataSource = "/YourXMLDocument.xml";
    InputStream stylesheetSource = TransformMe.class.getResourceAsStream(styleSheet);
    InputStream dataSourceStream = TransformMe.class.getResourceAsStream(dataSource);
    OutputStream transformedOut = new FileOutputStream("filename.html");
    TransformerFactory tFactory = TransformerFactory.newInstance();
    Transformer transformer = tFactory.newTransformer(new StreamSource(stylesheetSource));
    transformer.transform(new StreamSource(dataSourceStream), new StreamResult(transformedOut));You'll also need to learn XSLT if you don't already know that. Here's a good place to start
    http://www.w3schools.com/xsl/

  • Bug? Accessibility Tags Converting from Word 2007

    This seems like a minor issue, but it's one that could create a lot of frustration for a disabled person using a screenreader to read tabular data in a PDF.
    As you know, Acrobat plays nicely with Office apps allowing users to create tagged (structured), accessible PDF documents from MS Office files. I just created a simple docx file with a table (attached), and when I converted it to PDF, I noticed a difference in the tags it creates compared to conversion from Word XP. As you see in the Word file, the table is very basic, except that one of its column headers is split into two cells. This is actually a very common technique for presenting table data. In order to automatically tag the header rows as table header cells <TH> in the PDF, I set the first two rows to "Repeat Header Rows."
    Converting from Word 2007 with the "Save as Adobe PDF," or any other method that uses the Acrobat plugin, creates a tag tree that is missing a <TH> tag. I found the problem when I was testing a file with JAWS screenreading software. Using the JAWS "current cell" command (Ctrl-Alt-Numpad 5) to announce the column headers. It reads the wrong header for the current cell due to the missing <TH>. So, in my example file, it announces $2 and $5 as 2010 amounts rather than 2009. That could be pretty confusing to a screen reading user, to say the least.
    I then compared the result to the new Word 2007 "Save as PDF or XPS" feature. That feature tagged the file properly and the header columns match up.
    Compare the attached "save-as-adobe-pdf.gif" to"save-as-pdf-xps.gif". Note the empty (but necessary) <TH> tag in the latter image.
    Just as a sanity check I had a coworker with Word XP convert the file. Those tags were correct too. So, this must be a problem between Acrobat and Word 2007.
    Anyone have other observations on this? I'm going to be leading some accessibility training and right now, it looks like using the Word 2007 conversion feature is the way to go.
    I'm using Acrobat 9 Pro.
    Thanks,
    Joe

    Hi Joe,
    I sense your frustration. For any organization that has to or wants to engage in providing accessible online information
    a serious logistics support issue raises its head. To do PDF, HTML, whatever the proper way (and it can be done)
    requires more resources (training, knowledge, hardware, software, changes to work flows, perhaps some more staff).
    The is no "work smarter with less & pump out more" in this venue.
    Yes, it is helpful (and necessary) to "be one" with the S508 "paragraphs" - WCAG 1.0 - WCAG 20.
    However, once anyone begins to provide PDFs that must be "accessible" the first, single most important reference is ISO 32000.
    The Adobe PDF References that preceded PDF becoming an ISO Standard are useful; but, ISO 32000 is the standard.
    In this documentation there is full discussion of what *must* be done to provide an accessible PDF.
    Without a firm understanding of this content, other information tends to bring about a defused opacity of focus which can
    contribute to major conceptual errors vis-a-vis accessible PDF.
    Leonard Rosenthol's AUC blog entry provides a link to the ISO permitted Adobe version (free) of ISO 32000-1.
    http://www.acrobatusers.com/blogs/leonardr/adobe-posts-free-iso-32000
    Additional, useful information is found in these two documents:
    (1) - PDF Accessibility API Reference (from the Acrobat SDK)
    https://acrobat.com/#d=J7bWW4LvNoznh8fHCsfZDg
    (2) - Reading PDF Files Through MSAA
    https://acrobat.com/#d=uIOvkVTP74kag3bXFJLIeg
    About JAWS - Yes, much used. However, not the exlusively used AT application.
    If I use Windows Eyes, NVDA, a braille reader, or something else then what?
    JAWS *does not* define "it is accessible"...
    re: (1)
    "Game away and if it ...."
       Consider "Stop before right on red".
       "Compliance" is Stop on Red - Turn Right
       "Intent" (aka usability) is Stop on Red -  Look Good for on coming traffic that has the right of way - Yield - when clear, turn right.
    But, at least we are not talking about "left on red" 8^)
    re: (2)
    Just an observation. A defective product that claims to be "whole" can get entities (individuals/businesses) into a sticky wicket.
    Putting a high volume of defective products on one's selves only increases the probability that one gets 'busted'.
    Quantity replacing Quality just is not a success precursor.
    Case in point - Target and the national class action legal action that was taken against it with regards to "accessibility" of online information/services.
    Resolved now - see NFB's web site.
    re: (3)
    Ah, but what would Judge Judy or Judge Marily say?
    Efficiency does not preclude providing a "whole" product.
    I doubt that there will ever be a seamless "one-click" between products of any of the dominant software houses.
    They are intense competitors. That this is the case does not abrogate others from providing a "whole" product, no?
    So, if the organization wants the "we do accessible PDF" label then it pays the freight - Adobe Pro, training, appropriate work flows, etc
    that permit delivery of PDFs that meet the standards for what a well formed tagged output PDF is (accessible is a sub-set of this).
    For PDF there is no other way.
    If this cannot be done then there is always HTML as an acceptable method (to some it is the preferred and only "true" way).
    However, HTML, done "right" for accessiblilty is just as demanding in its own way.
    With each AT version / dot version release, JAWS - Windows Eyes - NVDA & others hone in closer on utilizing PDF ISO Standard 32000.
    That means if you deploy "accessible" PDF you need to provide PDF that live to the ISO standard.
    Keep in mind that S508's paragraphs began when, effectively, HTML was "it". In software terms that was geologic eons ago.
    For contemporary AT to effectively parse PDF, the PDF must be a well formed Tagged PDF having a format/layout that reflects a logical hierarchy.
    Creation of all this must start in the authoring environment with the content author.
    The post-process PDF output then assures that the PDF elements (tags) are the correct type, have the requisite attributes, etc.
    Without this, AT will not be able to provide the end-user effect utilization of the PDF.
    So, for AT to properly 'work' the PDF, <TH> elements *must* have the Scope attribute's value defined, Row and Column Span values defined, etc.
    Scope, Row Span, Column Span, Table IDs and Headings must be added as part of the post-processing of a PDF using Acrobat Professional.
    An alternative is the Netcentric CommonLook plug-in for Acrobat Professional. What it does, Acrobat Pro can do; however, the CommonLook
    provides a robust user interface. Downside: at some $1k per seat it is not 'cheap' and it has a *steep* learning curve (Sitka Pass?).
    Two table related resources are at this AUC thread (in post 3 and 4). They may be of some usefulness.
    http://www.acrobatusers.com/forums/aucbb/viewtopic.php?id=23178
    When the "smelly stuff" gets feed into the maw of the fan it's prudent to not be directly down stream, eh.
    Consider Target and the situation they put themselves in.
    Consider submittal of accessible PDF to fedgov or stategov agencies.
    They won't be in front of the fan if usability of the PDFs becomes an issue.
    Rather, it will be those submitting. After all the agency did say "accessible".
    Better to slow down and do it right or ramp up resource loading to support "schedule" than to stake oneself out as someones "feed" tomorrow, no?
    In the final analysis, for PDF, HTML, or any 'format',  Accessibility is the Usability + Compliance.
    Does it take improvements in professional development/training, adequate hardware/software, *time*?
    Yes. But, it all comes down to "where the rubber hits the road" - what tires are you on?
    It can be done. I do it one small step at a time every day. Often, that's what it takes.
    Deliverables are provided; but, with no mis-labeling and the incremental progress is identified, celebrated and the whole thing continues until
    the "road" is completed properly.
    Don't want wash outs, bridge collapse or what not tomorrow <g>.
    (But then I'm a fan of "Holmes on Homes" which may go a long way towards understanding my point of view when it comes to accessible PDF.)
    re: function(){Return ....
    Good question.
    My guess - either from the cut & paste I initially performed from the application I'd been using to assemble write up and screenshots or something associated with the Adobe Forum application.
    It can't be that I'm 'special'; if that was the case one of my occassional lotto quick picks would have been a big $ winner long ago <G>.
    fwiw -
    You'll find a number of "Accessible PDF" related resources in the threads at the AUC Accessibility Forum.
    http://www.acrobatusers.com/forums/aucbb/viewforum.php?id=18
    Two Accessible PDF related on demand eSeminars are also available.
    Look for Duff Johnson's and Charlie Pike's (on page 2) eSeminars.
    http://www.acrobatusers.com/learning_center/eseminars_on_demand
    Be well...

  • XML to convert creative html to jsp?

    I am trying to find a way to use XML, XSL, etc., to make the process of building web pages at my company easier between the creative team and developers:
    1.) The creative team creates the images, text, and html (using Dreamweaver). Please note, the creative team barely knows html, much less xml, xsl, or taglibs.
    2.) The creative team then sends me the html pages.
    3.) I then need to "convert" the html into jsps. That is, I remove the mock/dummy dynamic content, and replace it with the scriptlets or taglibs that will produce the real dynamic content.
    This takes alot of time. On top of that, if the creatives ever need to be changed, I need to send the newly converted jsps back to the creative team. They inevitably mess the jsps up, because they do not understand scriptlets or taglibs. Is there some standard way of dealing with this scenario, so that the creative team and I can work better together, and so that I dont constantly "convert" the html pages to jsps? I know one option is Enhydra's xmlc, but I will have a hard time getting the creative team to adopt that.
    thank you,
    David

    y don't u eliminate your jsp from your HTML. you can inculde html files as a header and footer.
    tell to write a comment tag in html <Html code> <table><tr><td> <!--jsp output--></td></tr></table> <Html code>. you can write a small jsp which can String.indexOf("<!--jsp output-->");. you can easily create header and footer files. for your jsp, u can also change your jsp code like this.

  • Applescript to convert from AW6 spreadsheets to Excel

    I have an iMac (iMac12,2) running OS 10.9.1 with applications of Pages’09 (4.3), Pages (5.0.1), Numbers’09 (2.3) and Numbers (3.0.1) available.
    One of my laptops is a MBA (MacBookAir1,1) that I have kept at 10.6.8 with applications Appleworks (6.2.2) and Appleworks (6.6.9) available.
    Recently, I converted many CWWP documents from AW6 into Pages.  This was done on the iMac with an Applescript that copied a file (AnyDocumentCWWP) to the desktop as a file named AWV6, opened AWV6 with Pages’09, saved the result as AWV6.Pages, applied the creation date and modify dates of the original to AWV6.Pages, moved the new AWV6.Pages to the original directory and moved the original file to the trash, renamed AWV6.Pages to the original filename (excluding extension).  The Pages version of the original document does not preserve the formatting of the CWWP, but the content was now discoverable with Spotlight.  Since I was primarily concerned with the content, I would consider the conversion effort successful enough.
    I performed the same sort of process on the iMac with CWSS documents converting from AW6 into Numbers.  Here the results were less successful.  I discovered that many of the converted spreadsheets had cells where the cell contained the last calculated value in substitute for the formula originally present -or- Numbers was unable to open the CWSS spreadsheet due to size limitations.  Neither problem occurs when the file is converted on the MBA by Appleworks into an Excel format.  For those CWSS files that did not properly convert to Numbers, I would like to perform a conversion to Excel.
    When a given spreadsheet is manually opened on the MBA with either version of Appleworks, one can “Save as” using several formats of Excel.  That operation will preserve the formula which cannot be recognized in Numbers’09. An example of this issue is when a spreadsheet has a cell that contains a formula with the function “ISNUMBER”.  When I manually open a CWSS in Appleworks (either 6.2 version), I can Save As Excel Win 97 … or Excel Mac 98 … creating an XLS file that preserves the formula.
    I have attempted two techniques with Applescript to be able to convert my CWSS documents into XLS format.  Neither seem to work.
    The first technique is very similar to a few lines extracted from a canned script found on http://macscripter.net/viewtopic.php?id=8296 the relevant code is:
    set theSprTranslator to "Excel Win 97, 2000, XP 2002 spr"
    tell application "System Events" to set mfpath to get path of disk item ("~/desktop/" as string)
    set newfile to (mfpath & "AWV6" as string)
    set NewFilename to AWV6XLS
    tell application "AppleWorks 6"
        activate
        open newFile -- alias reference is ok
        save using translator theSprTranslator with NewFilename and replace
        close front document without saving
    end tell
    When this did not work, I attempted a scripted GUI solution as a second option.  The GUI code I had found at http://stackoverflow.com/questions/17348326/applescript-to-save-an-appleworks-do cument-wont-compile-end-tell-vs-end-easy is:
    tell application "System Events"
             tell process "AppleWorks"
                     click menu item "Save As…" of menu "File" of menu bar 1
                     click menu button "File Format" of window "Save : AppleWorks 6"
                     click menu item "Excel Mac 5 spreadsheet" of menu 1 of menu button  "File Format" of window "Save : AppleWorks 6"
                     keystroke return
             end tell
    end tell
    Unfortunately there is no “File Format” menu button, after a bit of further research, I discovered UI Browser and wrote my own Applescript equivalent:
    set mytempwork1 to AWV6
    set theSprTranslator to “Excel Win 97, 2000, XP 2002 spr”
    tell application "Finder" to open file (mytempwork1 as string) of the desktop
    tell application "System Events"
        tell process "AppleWorks"
            click menu item "Save As…" of menu "File" of menu bar 1
            tell text field 1 of window "Save : AppleWorks 6"
                set value to "XX" & mytempwork1
            end tell
            click pop up button 1 of group 1 of window "Save : AppleWorks 6"
            click menu item theSprTranslator
            —click radio button 2 of group 1 of window "Save : AppleWorks 6"
            —delay 3
            —click radio button 1 of group 1 of window "Save : AppleWorks 6"
        end tell
    end tell
    tell application "System Events"
        tell process "AppleWorks"
            delay 10 — <<<<<IF YOU CLICK ON THE BUTTON WHILE IN THIS DELAY, THE SCRIPT WILL BEHAVE PROPERLY
            click button "Save" of window "Save : AppleWorks 6"
            delay 1
        end tell
    end tell
    This GUI script behaves almost as I would like.  It seems to ignore the setting of the “pop up button 1” unless I actually intervene while the script is running and I click on the button.  When I do so, the script runs as intended.
    Is there a way to force Appleworks to recognize the Applescripted value of the “clicked” menu item?

    Hello
    As far as I know, there's no need to resort to GUI scripting. The problem in exporting in AppleScript is that AppleWorks 6 only accepts typeChar (TEXT) data as translator name while AppleScript string has become always being represented as typeUnicodeText (utxt) since OS X 10.5. This makes passing translator name to save command difficult but there's a workaround method as shown in the sample code below. The |TEXT|() handler does the job. Tested with AppleWorks 6.2.4 under 10.6.8.
    main()
    on main()
        set export_translator to "Excel Mac 98, 2001 spreadsheet"
            "Excel Mac 5 spreadsheet"
            "Excel Mac 98, 2001 spreadsheet"
            "Excel Win 5 spreadsheet"
            "Excel Win 97, 2000, XP 2002 spr"
        set export_translator_TEXT to my |TEXT|(export_translator)
        set src to (path to desktop)'s POSIX path & "in.cwk"
        set dst to (path to desktop)'s POSIX path & "out.xls"
        set srca to src as POSIX file as alias
        set dsta to touch(dst) as POSIX file as alias
        tell application "AppleWorks 6"
            --return export translators
            open srca
            tell document 1
                if document kind = spreadsheet document then
                    save in dsta using translator export_translator_TEXT
                end if
                close saving no
            end tell
        end tell
    end main
    on touch(f)
        do shell script "touch " & f's quoted form
        return f
    end touch
    on |TEXT|(u)
            string u : source text
            return data : «data TEXT...» representing u converted to MACROMAN encoding
        do shell script "u=" & u's quoted form & "; printf '%s' \"$u\" | iconv -f UTF-8 -t MACROMAN | xxd -p"
        run (run script "
    script
        «data TEXT" & result & "»
    end script")
    end |TEXT|
    Hope this helps,
    H

  • Extract textdata from HTML with AUTO_FILTER

    Hi,
    we're using Oracle AUTO_FILTER to extract text-information from DOC and PDF - Documents.
    Works fine.
    We also have data stored within a HTML structure.
    We use our filter with the following options:
    ctx_ddl.create_preference('SEARCH_iMT_ATTRIB_AFILTER', 'AUTO_FILTER');
    ctx_ddl.create_policy('SE_IMT_POLICY', 'SEARCH_iMT_ATTRIB_AFILTER');
    The filter itself is called within a loop:
    CTX_DOC.Policy_Filter('SE_IMT_POLICY', v_blobtab(i), v_ctmp, TRUE);
    It seems as if AUTO_FILTER converts our HTML to HTML again.
    When trying to insert the AUTO_FILTER, I get an ora-31167: XML nodes over 64K in size cannot be inserted
    How can I force the AUTO_FILTER only to return plain-text?
    Thanks in advance
    Message was edited by:
    user557708

    You need to create a section group preference employing HTML_SECTION_GROUP and then use it when creating your Policy.
    Faisal

  • Suppressing headers and footers in PDFs made from HTML files

    When I convert a HTML file to PDF with Acrobat 9 Standard, the PDF contains a footer (file path) and header (file name).  I don't want these to appear in my PDF.  I have disabled headers and footers in MSIE 8, but that has no effect.  I can't deleted these objects from within Acrobat, unless I edit each page with the text touch up tool.  Is there a way to suppress the header/footer?  The subject HTML files came from another system.  Thanks.

    Thanks, Bernd, but where are these settings?  While I'm writing, is there a setting to make an html file fit on one page in Acrobat?

  • System or program crashes when converting from NEF to DNG

    Hello Adobe.
    First off, I love your software.
    Second, this is my concern. You guys are pushing DNG as the go to raw format. That would be great if it worked good, but it doesn't.
    First, when I convert from my Nikon NEF format (Nikon D7100) it chugs along just fine, then suddenly crashes either the program or my system after converting 50-100 or so images.
    I have tried everything from downloading your software again, to turning off everything other then what is needed to do the conversion.
    Of course I have the latest DNG utility/plug in/drivers from your website.
    Second, the DNG images open much slower then my NEF images. Plus when I view them in Windoze file system view and want to see the photos in extra large icons, it renders the images very slowly.
    My system is Windoze 8.1 updated always, Photoshop CC latest and greatest (I'm in the rental program), Bridge and Lightroom.
    I have tried to use bridge and lightroom to do the conversion, even a separate utility and the crashing still happens. All these are up to date.
    My system has an i7 Intel processor, 16 gb of Kingston ram, an ASUS P8Z77 MPRO mother board and a good stable power supply.
    No other software crashes my system like converting from NEF to DNG.
    What I do notice is my CPU fan goes into high RPM's and I am wondering if the CPU is overheating causing this.
    If that is the case, then it would seem to me the conversion software is taxing the system far more then it should since my system is no slouch and while it isn't the latest and greatest, I would consider it to be in the top 20%,
    it should be able to handle the conversion with no problem.
    Are you aware of problems with the DNG software and or file format?
    Is their any information I could forward to you to help solve the problem?

    Photoshop Help | Digital Negative (DNG) - Adobe
    helpx.adobe.com/photoshop/digital-negative.html
    DNG is a publicly available archival format for storing camera raw files. Adobe provides Adobe DNG Converter, a free utility that converts files from more than ...
    That is off the net, therefore, Adobe looks at DNG as part of Adobe Photoshop, which it is if a person chooses to convert.
    My issue has to do with it crashing, both my system and software.
    I assume if people here are using it, then they can advise me if they are having similar problems.
    I have also written Adobe directly several times over the last month and have yet to receive a response.
    I apologize that I posted here, but since I consider DNG an integral part of Photoshop, then I think it is appropriate here.
    I was also not aware of a DNG forum, if one exists.
    Thank you for your assistance.
    Jim

Maybe you are looking for

  • Key Figures not showing up in the Query disigner

    I added a key figure to a characteristic as an attribute, but it is not showing up in the Query designer any idea why Raj

  • Do I have to use port forwarding in router to log my essential server 2012 from outside

    hi, 1--do I have to use port forwarding if I have only essential server 2012 in my home? 2- what is exactly the benefit of port forwarding,  besides the converting static IP adres to internal IP adres for clients? thanks johan h.david

  • Portlet Information from Portal

    Hello,    I'm developing a non-SAP portlet that will be consumed by the portal and was wondering what information, if any, the portlet will have access to from SAP.  Basically I am wanting to know if I will be able to get any information about the us

  • Unable to start Weblogic Server

    Hi, I have installed the Weblogic server 10.3.5 and SOA 11.1.1.6.0 in the same Middleware directory. I have also created a domain sucessfully. When i try to start the Weblogic server it ends in Errors. Below are the log details, any help would be gre

  • Backlight keyboard on MBP

    Hello, I owned 2013 MBP withput retina display and I expericing an unsual backlight keyboard on my MBP, it will increase the light when i work in light area but it will dim the light when i used it on dark room (lamp off), from the information that i