Text offsets

Hi
I'm using JEditorPane to display a file. When the file to be displayed (chosen by the user) is an HTML file, I give the user an option to either render the HTML code (by changing the content type of the JEditorPane) or display the HTML source code of that file. The problem I have now is this: let's say that the user chose to render the file. The user then selects a segment of text. It is trivial to get the offsets of the selection of the rendered HTML (the one being displayed), but is it possible to get the offsets this selection would have in the source code of that HTML page?
For example if my source file was this:
<html><title>Web page</title><body>This is a text</body></html>
the rendered text would be:
This is a text
so the offsets of "is" (standalone "is" not part of "this") in the rendered text are 5-7. In the source file the offsets of "is" are 40-42 (more or less - you get the idea).
How can I get both these offsets? For a quick example you can also (if you have access to it) try to make a simple web page in FrontPage - it provides such feature.
Thanks
M
P.S. I'm NOT writing an HTML editor :D

You can get the text w/o the HTML by:
JEditorPane jep = ...
Document doc = jep.getDocument();
String plainText = doc.getText( 0, doc.getLength() );

Similar Messages

  • Strange text offset bug in Leopard?

    A few days ago I discovered this strange bug(?!) in both the iCal icon in the Dock and in iPhoto '09.
    The date on the iCal icon are offset and the name of events in iPhoto.
    It just came up from nowhere. The day before it was allright. So I reinstalled Leopard, iLife and so on... Everything was fine yesterday, but today the same thing happend.
    The only installation I have made today is Adobe CS4 Master Suite. BUT I'm not sure if it happend after or before the installation.. Or maybe hours after the installation.
    It's not a serious bug, but very very annoying. Any clues? Trixes? Fixes?
    Images at: http://public.me.com/johannesroth/

    The images were easy to view... thank you!
    Did you by chance edit the images in a Photoshop app and then export them to iPhoto????
    Did you have iPhoto 08 and upgrade? If so, try this, delete this file:
    com.apple.iPhoto.plist
    /Users/YourName/Library/Preferences. Drag that file from the Preferences folder to the Trash, empty the Trash and reboot. See if the text is still off set.
    Carolyn

  • Issue: Text offset by -1 character

    As a long time Acrobat user I have seen many strange issues come
    and go, but this one has me confused and somewhat frustrated.
    I have a user who regularly downloads PDFs from vendors which contain sales information. Recently the user began complaining that most of the documents she opens are "garbled." Upon investigation I found that the document was not corrupted (copy and pasting the text into notepad shows the correct information), and opening the documents on any other computer shows correctly. I have uninstalled and reinstalled Acrobat 9, uninstalled that and installed Acrobat Reader 9, uninstalled the fonts, etc. Nothing I do seems to have an affect. The font is Arial (any variations of Arial display correctly).
    The odd part is that this is not a traditional "garble" like with the corrupted font issues back in Acrobat 7, the text displayed is offset by -1 character (see below image).
    On any other system the text displays normally (see below image).
    I have changed display options for viewing text, utilizing local / embedded fonts, etc. Nothing has changed this. Any thoughts would be most appreciated.

    I would like to say that some of our users (Acrobat 9.0.0 Pro) have recently encountered this problem as well. When they send me the pdf file and I open it using Acrobat 8.2.0 the text is displayed fine. Suggesting update to Acrobat is difficult since users are in remote locations with unreliable connections.
    The application generates the PDF via SQL Server Reporting Services, the PDF document properties are as follows:
    PDF Producer: Microsoft Reporting Services PDF Rendering Extension 9.0
    PDF Version:   1.3 (Acrobat 4.x)
    Like the original poster, the font I am having the issues with is Arial. Included is what the user & I see.
    Any help is appreciated

  • Photosmart 7510 Prints the text offset to the right

    I use  MS Word 2010 and when I print text it appears offset 7 mm to the right. e.g. Left margin set at13 mm starts printing at 20 mm, and Right Margin set at19 mm stops printing at 12 mm. The same offset appears when using other applications e.g. Publisher, Zara, Photoshop etc.
    The Top, Bottom, Header and Footer print accurately in the correct position.
    Off course, I can adjust the margins to compensate for this error, but this is a bit of a nuisanse and offends my sense of rightness! I have had this printer for 3 years and the problem appeared right from the first day. I have other HP Printers but they do not display this problem. My Printer is directly connected to the computer via USB.
    This question was solved.
    View Solution.

    Hello X-23
    I have run the 'Align Printer' Tool as suggested, and am pleased to report that this has successfully resolved the issue; a print of one of my documents now positions the text on the page with the correct set margins. I am grateful for your help in resolving this proble for me; keep up the good work!
    Unfortunately, I now have to go through all my templates restoring the correct settings but "Hey Ho!"
    Being very long in the tooth, I am inclined to not use on line documentation unless I print it out, but this can be an expensive business these days! However, since applying a few of the suite of programmes held in the printer, I have become a lot more confident in using these features, so that is a bonus for me!
    With Regards
    GreatSimms

  • Getting exact margin of Label border to Text offset

    In my application I need to align several differently-sized
    Labels to the left side. If I align to the X-position, the larger
    labels are positioned somewhat to the right.
    I need to know how to measure the difference in x-position of
    the Label, and the actual position of the text - so far, I found
    nothing!
    Does anybody have a hint where to look?
    TIA,
    Bart Guijt

    You could draw to a bitmap the exact same size of the
    textfield, and then use getColorBoundsRect() to get actual pixel
    values. A hack, but it should work.

  • Strange behaviour on text insert into a HTML pane

    Hi all,
    I am trying to fix a problem on inserting a span tag into an existing html page (in an EDITABLE JEditorPane).
    The behaviour:
    Assuming the cells in a table (3 rows, 2 columns) are numbered from 1 to 6, with cell one being the top left most, cell 2 top right, cell 3 middle left, etc.
    1. Inserting the text "<span></span>" in cell 4 causes during any attempt to later type into cell 5 the characters to be appended instead into cell 4, directly after the close span tag.
    2. The insertion in the first place behaves strange. If I have the caret positioned for cell 5 so that I can insert there
    (via the function void javax.swing.text.html.HTMLEditorKit.insertHTML(HTML Document doc, int offset, String html, int popDepth, int pushDepth, Tag insertTag) )
    even though the caret position is visible in cell 5, the insertion seems to take place in cell 4.
    I can sort of compensate for this by adding 1 to the offset. However, then when inserting into a line of text, for example, "the quick red fox jumped over the lazy dog"
    I insert directly before the 'j' in 'jumped', the insertion looks like this "the quick red fox j<span>..</span>umped over the lazy dog"
    So that is no solution.
    IMPORTANT! Just to prove it is not the span tag causing the trouble, if this span tag already exists in a cell on 'Load' of the html file, the strange behaviour is not observed.
    Something is going wrong here. It is me? Or is it a bug?
    Please help!!
    Here is a test app, and the test html you can use (place in current directory).
    Please test like this:
    1. run application (the html should be loaded into the pane)
    2. the span tag is programmed to automatically insert at cell 4 (by using the +1 method on the insert)
    3. another span tag was already existing in the html file, at cell 8
    4. Attempt to type into cell 5
    result: the text appears instead at cell 4
    5. Type into cell 9
    result: the text correctly is entered into cell 9
    See the difference!!
    Help!
    The test java app:
    package small.test;
    import java.awt.BorderLayout;
    import java.awt.Container;
    import java.io.File;
    import java.io.FileReader;
    import java.io.IOException;
    import java.io.StringReader;
    import javax.swing.JEditorPane;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.JScrollPane;
    import javax.swing.SwingUtilities;
    import javax.swing.text.JTextComponent;
    import javax.swing.text.html.HTML;
    import javax.swing.text.html.HTMLDocument;
    import javax.swing.text.html.HTMLEditorKit;
    import javax.swing.text.html.parser.ParserDelegator;
    public class HtmlInsertTest extends JEditorPane
         public HtmlInsertTest()
         public static void main(String args[])
              JFrame frame = new JFrame("Loading/Saving Example");
              Container content = frame.getContentPane();
              frame.setSize(600, 600);
              final HtmlInsertTest editorPane = new HtmlInsertTest();
              editorPane.setEditable(true);
              JScrollPane scrollPane = new JScrollPane(editorPane);
              content.add(scrollPane, BorderLayout.CENTER);
              editorPane.setEditorKit(new HTMLEditorKit());
              JPanel panel = new JPanel();
              content.add(panel, BorderLayout.SOUTH);
              frame.setSize(600, 600);
              doLoadCommand(editorPane);
              editorPane.insertHTML("<span>inserted text</span>", 84);
              frame.setVisible(true);
         public static String getHTML()
              return
              "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">"+
              "<HTML>"+     "<HEAD>"+
              "     <META HTTP-EQUIV=\"CONTENT-TYPE\" CONTENT=\"text/html; charset=utf-8\">"+
              "     <TITLE></TITLE>"+          
              "</HEAD>"+
              "<BODY LANG=\"en-AU\" DIR=\"LTR\">"+
              "<P STYLE=\"margin-bottom: 0cm\">This is a test xhtml document. "+
         "     </P>"+
         "     <P STYLE=\"margin-bottom: 0cm\">"+
         "     </P>"+
         "     <P STYLE=\"margin-bottom: 0cm\">Here is a table:</P>"+
         "     <P STYLE=\"margin-bottom: 0cm\">"+
         "     </P>"+
         "     <p></p>"+
               "     <TABLE WIDTH=100% BORDER=1 BORDERCOLOR=\"#000000\" CELLPADDING=4 CELLSPACING=0>"+
         "          <TR VALIGN=TOP>"+
         "               <TD WIDTH=50%>"+
         "                    <P>It has</P>"+
         "               </TD>"+
         "               <TD WIDTH=50%>"+
         "                    <P>2 columns</P>"+
         "               </TD>"+
         "          </TR>"+
         "          <TR VALIGN=TOP>"+
         "               <TD WIDTH=50%><P>And 4 rows</P></TD>"+
         "               <TD WIDTH=50%><P></P></TD>"+
         "          </TR>"+
         "          <TR VALIGN=TOP>"+
         "               <TD WIDTH=50%><P></P></TD>"+
         "               <TD WIDTH=50%><P></P></TD>"+
         "          </TR>"+
         "          <TR VALIGN=TOP>"+
         "               <TD WIDTH=50%><P></P></TD>"+
         "               <TD WIDTH=50%><P><span>existing text</span></P></TD>"+
         "          </TR>"+
         "          <TR VALIGN=TOP>"+
         "               <TD WIDTH=50%><P></P></TD>"+
         "               <TD WIDTH=50%><P></P></TD>"+
         "          </TR>"+
         "     </TABLE>"+
         "     <P STYLE=\"margin-bottom: 0cm\">"+
         "     </P>"+
         "     <P STYLE=\"margin-bottom: 0cm\">"+
         "     </P>"+
         "     <P STYLE=\"margin-bottom: 0cm\">"+
         "     </P>"+
         "     <P STYLE=\"margin-bottom: 0cm\">We will test the drag and drop"+
         "     functionality with this document. "+
         "     </P>"+
         "     <P STYLE=\"margin-bottom: 0cm\">It will be loaded with the hlml editor.</P>"+
         "     <P STYLE=\"margin-bottom: 0cm\">"+
         "     </P>"+
         "     <P STYLE=\"margin-bottom: 0cm\">"+
         "     </P>"+
         "     </BODY>"+
         "     </HTML>";
         public static void doLoadCommand(JTextComponent textComponent)
              StringReader reader = null;
              try
                   System.out.println("Loading");
                   reader = new StringReader(getHTML());
                   // Create empty HTMLDocument to read into
                   HTMLEditorKit htmlKit = new HTMLEditorKit();
                   HTMLDocument htmlDoc = (HTMLDocument)htmlKit.createDefaultDocument();
                   // Create parser (javax.swing.text.html.parser.ParserDelegator)
                   HTMLEditorKit.Parser parser = new ParserDelegator();
                   // Get parser callback from document
                   HTMLEditorKit.ParserCallback callback = htmlDoc.getReader(0);
                   // Load it (true means to ignore character set)
                   parser.parse(reader, callback, true);
                   // Replace document
                   textComponent.setDocument(htmlDoc);
                   System.out.println("Loaded");
              catch (Exception exception)
                   System.out.println("Load oops");
                   exception.printStackTrace();
              finally
                   if (reader != null)
                        reader.close();
         public void insertHTML(String text, int offset)
              SwingUtilities.invokeLater(new insertAction(this, text, offset));
         class insertAction implements Runnable
              String text = "";
              int offset = 0;
              JEditorPane jEditorPane1 = null;
              public insertAction(JEditorPane _jEditorPane1, String _text, int _offset)
                   jEditorPane1 = _jEditorPane1;
                   text = _text;
                   offset = _offset;
              @Override
              public void run()
                   HTMLDocument doc = (HTMLDocument)jEditorPane1.getDocument();
                   HTMLEditorKit kit = (HTMLEditorKit)jEditorPane1.getEditorKit();
                   try
                        System.out.println("reading from string reader");
                        kit.insertHTML(     doc,
                                          offset,//+1
                                          text,
                                          0,//0
                                          0,//0
                                          HTML.Tag.SPAN);
                        System.out.println(jEditorPane1.getText());
                   catch (Exception e)
                        System.out.println("error inserting html: " + e);
    }Edited by: svaens on Jul 16, 2009 6:34 PM
    fix another stuffed up attempt at a SSCCE.

    Well, I know nothing about HTML in JEditorPanes. I have never been able to figure out how insertions work.
    My comment was a warning to others. Some people (like me) avoid answering posting of this type for reasons given in the JavaRanch link. Others will answer anyway. Other might first check the other site to see if they are wasting there time, but they can only do that if a link was posted with the original question.
    The only suggestion I have is to repost the question, (since this posting is now completely off topic) making sure to then respond to this posting stating that a fresh question has been asked so you don't get a discussion going on in two places.

  • Correct workflow when inserting images into text, InDesign CS4

    Hi,
    I am new to InDesign and I have a problem regarding a really basic thing and I would be very grateful for help.
    I am writing an article which is about 10 pages long. It consists mostly of text. I have finished writing and now I want to add some illustrations with descriptions. I've already figured out it's best to insert images into the text frame so they behave as "anchored objects" and they move together with text when I add or delete something on previous pages. Now I would like to place TWO OR MORE images, one next to each other, in a line. This is a bit tricky but I created an object style with Position: Custom in "Anchored object options" and it works more or less fine. This works great but now it would be hard to add descriptions to these images that would still be anchored.
    So I created something different. I made an empty rectangle frame, a small text frame under it and grouped them. Then I placed it in my master text frame and basically did the same thing as for previously described images. Now I place the newly loaded image in the empty rectangular frame and add text in the empty text frame. BUT now I have problems with frame size for different-size images.
    What if I have a REALLY LONG article and want to add LOTS of images with decriptions that would be anchored in the text so I can edit previous pages? I can do this my way, but it's extremely uncomfortable and takes ages. Is there any comfortable, non-destructive workflow for doing such things?
    Sorry for my English.

    Hi,
    I would recommend following steps:
    Place one or more images
    Don't anchor them yet.
    Arange them (the images) relatively to each other, add a text frame and arrange them correct relatively to the images.
    Group images and text
    Copy (or cut) them into the clippboard
    Set the curser into the text where it should flow
    Paste it
    Adjust the anchored object (the group)
    You need to group several objects to anchor them together as one anchor.
    Further recommendation:
    For the images I would specify an object style for fitting, stroke, corner optione.
    For text frames I would specify an object style for text object options, like text offset, and used paragraph style, no boarder, etc.
    For the group I would spcify an object style which leaves above mentioned settings undefined (option field is grea or has a dash). But the anchored position of the whole group and text wrapping should be specified.
    Willi Adelberger

  • How to get the Text variables in the Columns Headings

    Hi,
         My requirement is I need to get data for weekly wise and for the last 10 weeks also. For this purpose I used the restricted KF based on the variables (customer exit) and offset. Also used the text variable for displaying from and to days in the column headings. I am getting the right text for the first column only. But the text offset is not considering.
    Ex 07/04/2007 to 07/10/2007      06/27/2007 to 07/03/2007 like that.
    I used the two text variables one for from data and other for to date using the customer exit. I am getting the same text as of the first column for the subsequent columns also. Please help me for getting the right text in the columns.
    Thanks,
    visu

    Hello ,
               The quite simple way is to create a text variable with replacement path , as it replaces the value of customer exit used in the report.
    create two text variables
    First variable:
    1 Replace variable with -
    external characteristic key value
    For interval use ---from value
    2.Secod text variable
    Replace variable with -
    external characteristic key value
    For interval use ---To value
    offset start -0000 offset length0000
    use these variables in the column headings.
    hope it is clear,
    assign points if useful

  • Attach text UNDER path

    I know I've done this before but I can't figure it out or
    find it - how do I attach the TOP of my text to the BOTTOM of a
    path? I can attach the text to the path, but its default is the
    bottom of the text to the inside of the path. I want to attach it
    to the outside, so that that TOP of the text follows the curve.
    It's driving me IN-SANE.

    Correction!
    Use the Baseline Shift and give it a negative number.
    Alex Mariño wrote:
    > Select the text with the Text Tool and change the Text
    offset (in the
    > Properties Panel) to a negative value.
    >
    > alex
    >
    > HeadNClouds wrote:
    >> I know I've done this before but I can't figure it
    out or find it -
    >> how do I attach the TOP of my text to the BOTTOM of
    a path? I can
    >> attach the text to the path, but its default is the
    bottom of the text
    >> to the inside of the path. I want to attach it to
    the outside, so that
    >> that TOP of the text follows the curve. It's driving
    me IN-SANE.
    >>

  • Rendering location and text

    Hi
    I am rendering village locations using marker style and text style. I am using mapviewer11ea.Following is the xml format of this.
    <?xml version="1.0" standalone="yes"?>
    <styling_rules>
    <rule column="MSLINK">
    <features style="M.MAJOR_VILLAGES"> </features>
    <label column="NAME" style="T.MAJOR_VILLAGES"> 1 </label>
    </rule>
    </styling_rules>
    Now it renders village location and village name without any problem. For identifying feature [getting informtion of selected village] I need to hilite this location and place marker where the mouse has clicked. For placing marker i am using mapviewer.addPointFeature(...) and for hiliting the selected village I am using mapViewer.addJDBCTheme(...) methods. But in the both the cases the text[village name] will go off [ text will disappear].
    Please give me suggession to solve this
    Thnaks,
    Sujnan

    Hi,
    Thanks for replay.
    Here is my addPointFeature and addJDBCTheme methods
    Point2D pt = mapViewer.getUserPoint(intScreenX, intScreenY);
    mapViewer.addPointFeature(pt.getX(), pt.getY(), 81993, M.CYAN PIN, null, null, null);
    where intScreenX, intScreenY are screen coordinates.
    and addJDBCTheme method is
    mapViewer.addJDBCTheme("MapDataSource", "Hilite", strQuery, "geom", "81993", "M.HILITE_POINT" , null, null, false);
    Xml style definition for M.HILITE_POINT is
    <?xml version="1.0" standalone="yes"?>
    <svg height="1in" width="1in">
    <desc/>
    <g class="marker" style="stroke:#FFCC00;fill:#FFFF33;width:8;height:8;font-family:Dialog;font-size:12;font-fill:#FF0000;text-offset-x:10;text-offset-y:10">
    <circle cx="0" cy="0" r="8.0"/>
    </g>
    </svg>
    Thanks,
    Sujnan

  • Hi, I am new to Applescript and after messing around with it have a few questions.

    Firstly, I love applescript so far and have made an alarm clock, simple get weather app and applescript app that announces the time and date. i would like to be able to use this as a jarvis like combined app where i can have all of these built into one applescript. secondly i would like a better version of my weather app to be included that can give me weather based on my location (not the location i have it set too). lastly it would also be a miracle if someone could give me a way to make a simple chat like bot that can talk back because i have tried setting up eliza (chat bot from apple) but because it uses ichat things are much more difficult for me as a novice to set up properly.  for instance type hi in a display dialog box and have the text returned open up in messages and be able to communicate with my chat bot that would have predefined responses for what i type. like if i type weather it would know to tell me the weather.  anyway ill have my codes listed below and if anyone can help with any part of this that would be fantastic and greatly appreciated. also just a note i will never sell this thing if someone helps me by giving me coding to get this idea working.  i just want it because i could greatly use having a virtual assistant and to use personally.  thanks in advance for all people who do help.
    --codes for getting date
    set {year:y, month:m, day:d} to (current date)
    y --> 2006
    m --> April
    d --> 15
    -- note that the month given above is not text unless coerced to text. "April" is a word in the AppleScript lexicon.
    -- these results can also be obtained directly, one at a time:
    month of (current date) --> April
    -- or as a list:
    {year, month, day} of (current date) --> {2006, April, 15}
    -- and finally, the day of the week can be extracted:
    weekday of date "Saturday, April 15, 2006 4:29:04 PM" --> Saturday
    say date string of (current date)
    --codes for getting time
    set currentDate to current date
    set amPM to "AM"
    set currentHour to (currentDate's hours)
    set currentMinutes to currentDate's minutes
    if (currentHour ≥ 12 and currentHour < 24) then
              set amPM to "PM"
    else
              set amPM to "AM"
    end if
    --  make minutes below 10 sound nice
    if currentMinutes < 10 then
              set currentMinutes to ("0" & currentMinutes) as text
    end if
    --  ensure 0:nn gets set to 12:nn AM
    if currentHour is equal to 0 then
              set currentHour to 12
    end if
    --  readjust for 12 hour time
    if (currentHour > 12) then
              set currentHour to (currentHour - 12)
    end if
    set currentTime to (currentHour as text) & ":" & ((currentMinutes) as text) & " " & amPM as text
    say currentTime
    --alarm with weather
    -- prompt the user for the desired wake up time
    set targetTime to the text returned of (display dialog "Enter the wake-up time:" default answer "7:00 AM")
    say "Goodnight sir…"
    -- wait until we reach the target date/time
    repeat while (current date) is less than date targetTime
      -- should be 60
      delay 2
    end repeat
    say "It is " & getTimeInHoursAndMinutes()
    on getTimeInHoursAndMinutes()
      -- Get the "hour"
              set timeStr to time string of (current date)
              set Pos to offset of ":" in timeStr
              set theHour to characters 1 thru (Pos - 1) of timeStr as string
              set timeStr to characters (Pos + 1) through end of timeStr as string
      -- Get the "minute"
              set Pos to offset of ":" in timeStr
              set theMin to characters 1 thru (Pos - 1) of timeStr as string
              set timeStr to characters (Pos + 1) through end of timeStr as string
      --Get "AM or PM"
              set Pos to offset of " " in timeStr
              set theSfx to characters (Pos + 1) through end of timeStr as string
              set theHours to hours of the (current date)
              if theHours > 18 then
                        say "good Evening"
              else if theHours > 12 then
                        say "good Afternoon"
              else if theHours > 6 then
                        say "good Morning"
              else if theHours > 0 then
                        say "good Morning"
              end if
              return (theHour & ":" & theMin & " " & theSfx) as string
    end getTimeInHoursAndMinutes
    tell application "Mail" to launch
    tell application "Calendar" to launch
    tell application "iTunes" to launch
    set CityCode to 2353736
    set t_format to "F"
    set v_format to "S"
    set a_format to "Y"
    set IURL to "http://weather.yahooapis.com/forecastrss?w=" & CityCode
    set file_content to (do shell script "curl " & IURL)
    --looking for the line with actual condition
    set theText to text ((offset of "yweather:condition" in file_content) + 1) thru -1 of file_content
    set sub_1 to text ((offset of "\"" in theText) + 1) thru -1 of theText
    set actual_condition to text 1 thru ((offset of "\"" in sub_1) - 1) of sub_1
    set sub_1a to text ((offset of "temp=" in sub_1)) thru -1 of sub_1
    set sub_1b to text ((offset of "\"" in sub_1a) + 1) thru -1 of sub_1a
    set actual_temp to text 1 thru ((offset of "\"" in sub_1b) - 1) of sub_1b
    if t_format is equal to "C" then
              set actual_temp to (5 / 9) * (actual_temp - 32) as integer
    end if
    set theText to text ((offset of "yweather:forecast" in file_content) + 1) thru -1 of file_content
    set sub_2 to text ((offset of "\"" in theText) + 1) thru -1 of theText
    set today_min_temp to word 9 of sub_2
    set today_max_temp to word 12 of sub_2
    if t_format is equal to "C" then
              set today_min_temp to (5 / 9) * (today_min_temp - 32) as integer
              set today_max_temp to (5 / 9) * (today_max_temp - 32) as integer
    end if
    set sub_3 to text ((offset of "text" in sub_2) + 1) thru -1 of sub_2
    set sub_4 to text ((offset of "\"" in sub_3) + 1) thru -1 of sub_3
    set today_forecast to text 1 thru ((offset of "\"" in sub_4) - 1) of sub_4
    set sub_5 to text ((offset of "yweather:forecast" in sub_4) + 1) thru -1 of sub_4
    set sub_6 to text ((offset of "\"" in sub_5) + 1) thru -1 of sub_5
    set tomorrow_min_temp to word 9 of sub_6
    set tomorrow_max_temp to word 12 of sub_6
    if t_format is equal to "C" then
              set tomorrow_min_temp to (5 / 9) * (tomorrow_min_temp - 32) as integer
              set tomorrow_max_temp to (5 / 9) * (tomorrow_max_temp - 32) as integer
    end if
    set sub_7 to text ((offset of "text" in sub_6) + 1) thru -1 of sub_6
    set sub_8 to text ((offset of "\"" in sub_7) + 1) thru -1 of sub_7
    set tomorrow_forecast to text 1 thru ((offset of "\"" in sub_8) - 1) of sub_8
    if a_format is equal to "Y" then
              say "The current weather in Alpine is " & actual_temp & " degrees and " & actual_condition
    end if
    delay 4
    tell application "Mail"
              set unreadMessages to (get every message of mailbox "INBOX" of account "jarvisMail" whose read status is false)
              set numberofmessages to (count of (every message of mailbox "INBOX" of account "jarvisMail" whose read status is false))
              if (count of (every message of mailbox "INBOX" of account "jarvisMail" whose read status is false)) is 1 then
                        tell application "Mail"
                                  say "There is only " & numberofmessages & " new email"
                                  repeat with eachMessage in unreadMessages
                                            say "From! "
                                            say (get sender of eachMessage)
                                            say "Subject."
                                            say (get subject of eachMessage)
                                            set read status of eachMessage to true
                                  end repeat
                        end tell
              else if (count of (every message of mailbox "INBOX" of account "jarvisMail" whose read status is false)) is greater than 1 then
                        tell application "Mail"
                                  say "There are " & numberofmessages & " new messages"
                                  repeat with eachMessage in unreadMessages
                                            say "From! "
                                            say (get sender of eachMessage)
                                            say "Subject."
                                            say (get subject of eachMessage)
                                            set read status of eachMessage to true
                                  end repeat
                        end tell
              else
                        say "You have no new messages"
              end if
              tell application "Mail" to quit
    end tell
    delay 4
    set today to (current date)
    set today's time to 0
    set tomorrow to today + days
    set myHome to {}
    tell application "Calendar"
              set futureEvents to every event of calendar "Home" whose start date is greater than or equal to today and end date is less than or equal to tomorrow
              tell application "Calendar" to quit
    end tell
    repeat with anEvent in futureEvents
              tell application "Calendar" to set {summary:theSummary, start date:theStartDate, allday event:allDayEvent} to anEvent
              if (allDayEvent) then
                        set theTime to "At some time today"
              else
                        set {hours:Eventhour, minutes:Eventminute} to theStartDate
                        if (Eventhour > 12) then
                                  set Eventhour to Eventhour - 12
                                  set pre to "PM"
                        else
                                  set pre to "AM"
                        end if
                        if (Eventminute is 0) then set Eventminute to ""
                        set theTime to "At " & Eventhour & " " & Eventminute & " " & pre
              end if
              set the end of myHome to theTime & " you have the event… " & theSummary
    end repeat
    set numberOfHome to (count myHome)
    if (numberOfHome is less than 1) then
              say "you have no events today."
    else if (numberOfHome is equal to 1) then
              say "you have one event today"
      delay 1
              say item 1 of myHome
    else
              say "you have" & numberOfHome & " Home today"
      delay 1
              repeat with thismeeting in myHome
      say thismeeting
                        delay 0.5
              end repeat
    end if
    delay 4
    tell application "iTunes"
              play playlist "Jarvis Alarm"
              delay 900
              tell application "iTunes" to quit
    end tell
    --weather
    set weather to "curl " & quote & "http://weather.yahooapis.com/forecastrss?p=USNY0996&u=f" & quote
    set postWeather to "grep -E '(Current Conditions:|F<BR)'"
    set forecast to do shell script weather & " | " & postWeather
    say (characters 1 through -7 of paragraph 2 of forecast) as string

    4piper wrote:
     I have a HP Envy 15 Notebook PC "without" a cd/dvd drive. I bought one that plugs in which is a pain, but I am findind myself having to install updates that lasts for hours. Please, can someone help me??? I am almost ready to go back to Dell because I have had to many issues! I have spent more time on the upgrades/updates than I have actual enjoyment on this PC. And it is 13 days old.
    And getting a PC that does not have a cd player is completely, well I am not going to say it. How was I going to download the printer? Or any other software?
    Can someone please tell me if there is a one button upgrade/update that will get this done and over with?
    Thank you.
    Piper
    Hi,
    Could you tell us what Envy 15 it is, please? I mean the full model name. The new laptops don't have any DVD drives because all drivers etc can be downloaded from the internet and all bootable images don't have to be burned to DVDs but simple converted to usb drives. Tell us also what printer you have got so we can find the right drivers for you.
    Dv6-7000 /Full HD/Core i5-3360M/GF 650M/Corsair 8GB/Intel 7260AC/Samsung Pro 256GB
    Testing - HP 15-p000
    HP Touchpad provided by HP
    Currently on Debian Wheeze
    *Please, help other users with the same issue by marking your solved topics as "Accept as Solution"*

  • How to modify Apple's "Project Proposal" template in Pages 5.0?

    In Pages 5.0 I want to use Apple's "Project Proposal" template for my project proposals, but I need to modify Apple's original template.
    Removing the image works in the "Modern Report" template - but does not work in the "Project Proposal" template.
    What is the difference in how the image is places in the "Modern Report" template vs the "Project Proposal" template?
    In Apple's original version on the first page, there is a large image, followed by:
    Project Proposal
    Prepared for: Trenz Pruca, Title
    Prepared by: Urna Semper, Job Title
    2013年10月26日
    Proposal number: 123-4567
    I need to remove the image, and start my text from the top of the first page. I could manage to remove Apple's original image easily, but the space previously occupied by the image remains as empty space. I tried for a couple of hours to eliminate this empty space (previously occopied by the image) and move the "Project Proposal etc" text to the top, but could not find a way to do that.
    Where can I find and modify the offset of the text from the top of the page, or eliminate the empty space previously occupied by the image.
    There seem to be some controls hidden somewhere in the Pages software, or of the template itself, which I could not find yet, where this text offset from the top is controlled.
    Any help greatly appreciated.
    Gerhard

    I encounter the same problem today when trying to use this template, and after reading previous replies, I went and copy all the elements (Select All) into a new blank document (don't have an older Pages version) and it worked just fine for me, no overlaping or anything, as you can see on the image below, the layout doesn't start after the image, I just had to tweak it a little, like moving the company name and upper line to the top (and move them to section master) and manually adding the bottom line.
    I'm new here, so if any of you can tell me if and how can I upload my Project Proposal template I just created to this discussion, I'll be happy to share it with all of you.

  • Problem to upload the data into internal table record length more than 6000

    Hi all
            I stuck with this problem from past 3 days. I have to upload the data from excel sheet. iam making it tab delimited and trying to upload from gui_upload. but in the structure of file, we have, one field of 4000 characters, and other fields of 255 characters.
    how can i upload this into internal table . From excel sheet or from tab delimeted or any other format? or any special function module is there?  while iam doing this its truncating the datat 255 characters and not uploading the other fields also...
    can any one of you help me out. ASAP
    thnks in advance

    from one of the forum iam just pasting code which it is used in lsmw, try the same logic in ur code hope it can work.
    you have to create multiple lines with do...enddo loop., like this:
    (assuming excel_long_text-text is 924 characters long, 7 lines X 132 char)
    __GLOBAL_DATA__
    data: offset type i,
    text_132(132) type c.
    __BEGIN_OF_RECORD__ Before Using Conversion Rules
    Rule : Default Settings Modified
    Code: /sapdmc/ltxtl = init_/sapdmc/ltxtl.
    CLEAR offset.
    DO 7 TIMES.
    text_132 = excel_long_text-text+offset(132).
    offset = offset + 132.
    __END_OF_RECORD__ After Using Conversion Rules
    Rule : Default Settings Modified
    Code: transfer_record.
    ENDDO.
    also check this
    COMMIT_TEXT
    To load long text into SAP
    READ_TEXT
    To load long text into SAP

  • Need to create a driver class for a program i have made...

    hey guys im new to these forums and someone told me that i could get help on here if i get in a bind...my problem is that i need help creating a driver class for a program that i have created and i dont know what to do. i need to know how to do this is because my professor told us after i was 2/3 done my project that we need at least 2 class files for our project, so i need at least 2 class files for it to run... my program is as follows:
    p.s might be kinda messy, might need to put it into a text editor
    Cipher.java
    This program encodes and decodes text strings using a cipher that
    can be specified by the user.
    import java.io.*;
    public class Cipher
    public static void printID()
    // output program ID
    System.out.println ("*********************");
    System.out.println ("* Cipher *");
    System.out.println ("* *");
    System.out.println ("* *");
    System.out.println ("* *");
    System.out.println ("* CS 181-03 *");
    System.out.println ("*********************");
    public static void printMenu()
    // output menu
    System.out.println("\n\n****************************" +
    "\n* 1. Set cipher code. *" +
    "\n* 2. Encode text. *" +
    "\n* 3. Decode coded text. *" +
    "\n* 4. Exit the program *" +
    "\n****************************");
    public static String getText(BufferedReader input, String prompt)
    throws IOException
    // prompt the user and get their response
    System.out.print(prompt);
    return input.readLine();
    public static int getInteger(BufferedReader input, String prompt)
    throws IOException
    // prompt and get response from user
    String text = getText(input, prompt);
    // convert it to an integer
    return (new Integer(text).intValue());
    public static String encode(String original, int offset)
    // declare constants
    final int ALPHABET_SIZE = 26; // used to wrap around A-Z
    String encoded = ""; // base for string to return
    char letter; // letter being processed
    // convert message to upper case
    original = original.toUpperCase();
    // process each character of the message
    for (int index = 0; index < original.length(); index++)
    // get the letter and determine whether or not to
    // add the cipher value
    letter = original.charAt(index);
    if (letter >='A' && letter <= 'Z')
    // is A-Z, so add offset
    // determine whether result will be out of A-Z range
    if ((letter + offset) > 'Z') // need to wrap around to 'A'
    letter = (char)(letter - ALPHABET_SIZE + offset);
    else
    if ((letter + offset) < 'A') // need to wrap around to 'Z'
    letter = (char)(letter + ALPHABET_SIZE + offset);
    else
    letter = (char) (letter + offset);
    // build encoded message string
    encoded = encoded + letter;
    return encoded;
    public static String decode(String original, int offset)
    // declare constants
    final int ALPHABET_SIZE = 26; // used to wrap around A-Z
    String decoded = ""; // base for string to return
    char letter; // letter being processed
    // make original message upper case
    original = original.toUpperCase();
    // process each letter of message
    for (int index = 0; index < original.length(); index++)
    // get letter and determine whether to subtract cipher value
    letter = original.charAt(index);
    if (letter >= 'A' && letter <= 'Z')
    // is A-Z, so subtract cipher value
    // determine whether result will be out of A-Z range
    if ((letter - offset) < 'A') // wrap around to 'Z'
    letter = (char)(letter + ALPHABET_SIZE - offset);
    else
    if ((letter - offset) > 'Z') // wrap around to 'A'
    letter = (char)(letter - ALPHABET_SIZE - offset);
    else
    letter = (char) (letter - offset);
    // build decoded message
    decoded = decoded + letter;
    return decoded;
    // main controls flow throughout the program, presenting a
    // menu of options the user.
    public static void main (String[] args) throws IOException
    // declare constants
    final String PROMPT_CHOICE = "Enter your choice: ";
    final String PROMPT_VALID = "\nYou must enter a number between 1" +
    " and 4 to indicate your selection.\n";
    final String PROMPT_CIPHER = "\nEnter the offset value for a caesar " +
    "cipher: ";
    final String PROMPT_ENCODE = "\nEnter the text to encode: ";
    final String PROMPT_DECODE = "\nEnter the text to decode: ";
    final String SET_STR = "1"; // selection of 1 at main menu
    final String ENCODE_STR = "2"; // selection of 2 at main menu
    final String DECODE_STR = "3"; // selection of 3 at main menu
    final String EXIT_STR = "4"; // selection of 4 at main menu
    final int SET = 1; // menu choice 1
    final int ENCODE = 2; // menu choice 2
    final int DECODE =3; // menu choice 4
    final int EXIT = 4; // menu choice 3
    final int ALPHABET_SIZE = 26; // number of elements in alphabet
    // declare variables
    boolean finished = false; // whether or not to exit program
    String text; // input string read from keyboard
    int choice; // menu choice selected
    int offset = 0; // caesar cipher offset
    // declare and instantiate input objects
    InputStreamReader reader = new InputStreamReader(System.in);
    BufferedReader input = new BufferedReader(reader);
    // Display program identification
    printID();
    // until the user selects the exit option, display the menu
    // and respond to the choice
    do
    // Display menu of options
    printMenu();
    // Prompt user for an option and read input
    text = getText(input, PROMPT_CHOICE);
    // While selection is not valid, prompt for correct info
    while (!text.equals(SET_STR) && !text.equals(ENCODE_STR) &&
    !text.equals(EXIT_STR) && !text.equals(DECODE_STR))
    text = getText(input, PROMPT_VALID + PROMPT_CHOICE);
    // convert choice to an integer
    choice = new Integer(text).intValue();
    // respond to the choice selected
    switch(choice)
    case SET:
         // get the cipher value from the user and constrain to
    // -25..0..25
    offset = getInteger(input, PROMPT_CIPHER);
    offset %= ALPHABET_SIZE;
    break;
    case ENCODE:
    // get message to encode from user, and encode it using
    // the current cipher value
    text = getText(input, PROMPT_ENCODE);
    text = encode(text, offset);
    System.out.println("Encoded text is: " + text);
    break;
    case DECODE:
    // get message to decode from user, and decode it using
    // the current cipher value
    text = getText(input, PROMPT_DECODE);
    text = decode(text, offset);
    System.out.println("Decoded text is: " + text);
    break;
    case EXIT:
    // set exit flag to true
    finished = true ;
    break;
    } // end of switch on choice
    } while (!finished); // end of outer do loop
    // Thank user
    System.out.println("Thank you for using Cipher for all your" +
    " code breaking and code making needs.");
    }

    My source in code format...sorry guys :)
       Cipher.java
       This program encodes and decodes text strings using a cipher that
       can be specified by the user.
    import java.io.*;
    public class Cipher
       public static void printID()
          // output program ID
          System.out.println ("*********************");
          System.out.println ("*       Cipher      *");
          System.out.println ("*                   *");
          System.out.println ("*                          *");
          System.out.println ("*                   *");
          System.out.println ("*     CS 181-03     *");
          System.out.println ("*********************");
       public static void printMenu()
          // output menu
          System.out.println("\n\n****************************" +
                               "\n*   1. Set cipher code.    *" +
                               "\n*   2. Encode text.        *" +
                               "\n*   3. Decode coded text.  *" +
                               "\n*   4. Exit the program    *" +
                               "\n****************************");
       public static String getText(BufferedReader input, String prompt)
                                           throws IOException
          // prompt the user and get their response
          System.out.print(prompt);
          return input.readLine();
       public static int getInteger(BufferedReader input, String prompt)
                                           throws IOException
          // prompt and get response from user
          String text = getText(input, prompt);
          // convert it to an integer
          return (new Integer(text).intValue());
       public static String encode(String original, int offset)
          // declare constants
          final int ALPHABET_SIZE = 26;  // used to wrap around A-Z
          String encoded = "";           // base for string to return
          char letter;                   // letter being processed
          // convert message to upper case
          original = original.toUpperCase();
          // process each character of the message
          for (int index = 0; index < original.length(); index++)
             // get the letter and determine whether or not to
             // add the cipher value
             letter = original.charAt(index);
             if (letter >='A' && letter <= 'Z')          
                // is A-Z, so add offset
                // determine whether result will be out of A-Z range
                if ((letter + offset) > 'Z') // need to wrap around to 'A'
                   letter = (char)(letter - ALPHABET_SIZE + offset);
                else
                   if ((letter + offset) < 'A') // need to wrap around to 'Z'
                      letter = (char)(letter + ALPHABET_SIZE + offset);
                   else
                      letter = (char) (letter + offset);
             // build encoded message string
             encoded = encoded + letter;
          return encoded;
       public static String decode(String original, int offset)
          // declare constants
          final int ALPHABET_SIZE = 26;  // used to wrap around A-Z
          String decoded = "";           // base for string to return
          char letter;                   // letter being processed
          // make original message upper case
          original = original.toUpperCase();
          // process each letter of message
          for (int index = 0; index < original.length(); index++)
             // get letter and determine whether to subtract cipher value
             letter = original.charAt(index);
             if (letter >= 'A' && letter <= 'Z')          
                // is A-Z, so subtract cipher value
                // determine whether result will be out of A-Z range
                if ((letter - offset) < 'A')  // wrap around to 'Z'
                   letter = (char)(letter + ALPHABET_SIZE - offset);
                else
                   if ((letter - offset) > 'Z') // wrap around to 'A'
                      letter = (char)(letter - ALPHABET_SIZE - offset);
                   else
                      letter = (char) (letter - offset);
             // build decoded message
             decoded = decoded + letter;
          return decoded;
       // main controls flow throughout the program, presenting a
       // menu of options the user.
       public static void main (String[] args) throws IOException
         // declare constants
          final String PROMPT_CHOICE = "Enter your choice:  ";
          final String PROMPT_VALID = "\nYou must enter a number between 1" +
                                      " and 4 to indicate your selection.\n";
          final String PROMPT_CIPHER = "\nEnter the offset value for a caesar " +
                                       "cipher: ";
          final String PROMPT_ENCODE = "\nEnter the text to encode: ";
          final String PROMPT_DECODE = "\nEnter the text to decode: ";
          final String SET_STR = "1";  // selection of 1 at main menu
          final String ENCODE_STR = "2"; // selection of 2 at main menu
          final String DECODE_STR = "3"; // selection of 3 at main menu
          final String EXIT_STR = "4";  // selection of 4 at main menu
          final int SET = 1;            // menu choice 1
          final int ENCODE = 2;         // menu choice 2
          final int DECODE =3;          // menu choice 4
          final int EXIT = 4;           // menu choice 3
          final int ALPHABET_SIZE = 26; // number of elements in alphabet
          // declare variables
          boolean finished = false; // whether or not to exit program
          String text;              // input string read from keyboard
          int choice;               // menu choice selected
          int offset = 0;           // caesar cipher offset
          // declare and instantiate input objects
          InputStreamReader reader = new InputStreamReader(System.in);
          BufferedReader input = new BufferedReader(reader);
          // Display program identification
          printID();
          // until the user selects the exit option, display the menu
          // and respond to the choice
          do
             // Display menu of options
             printMenu(); 
             // Prompt user for an option and read input
             text = getText(input, PROMPT_CHOICE);
             // While selection is not valid, prompt for correct info
             while (!text.equals(SET_STR) && !text.equals(ENCODE_STR) &&
                     !text.equals(EXIT_STR) && !text.equals(DECODE_STR))       
                text = getText(input, PROMPT_VALID + PROMPT_CHOICE);
             // convert choice to an integer
             choice = new Integer(text).intValue();
             // respond to the choice selected
             switch(choice)
                case SET:
                // get the cipher value from the user and constrain to
                   // -25..0..25
                   offset = getInteger(input, PROMPT_CIPHER);
                   offset %= ALPHABET_SIZE;
                   break;
                case ENCODE:
                   // get message to encode from user, and encode it using
                   // the current cipher value
                   text = getText(input, PROMPT_ENCODE);
                   text = encode(text, offset);
                   System.out.println("Encoded text is: " + text);
                   break;
                case DECODE:
                   // get message to decode from user, and decode it using
                   // the current cipher value
                   text = getText(input, PROMPT_DECODE);
                   text = decode(text, offset);
                   System.out.println("Decoded text is: " + text);
                   break;
                case EXIT:
                   // set exit flag to true
                   finished = true ;
                   break;
             } // end of switch on choice
          } while (!finished); // end of outer do loop
          // Thank user
          System.out.println("Thank you for using Cipher for all your" +
                             " code breaking and code making needs.");
    }

  • How to call an applescript application from Office 2011 Excel VBA

    All:
    I have been pounding my head how to implement a working VBA application into the Mac environment. I have tried a number of approaches calling applescript from VBA. I would like to call my applescript application and pass one argument. My applescript application is as follows:
    <code>
    on run argv
    set theURL to (item 1 of argv)
    set p_path to do shell script "echo ~"
    set m_path to POSIX file p_path
    set theName to text -((offset of "/" in (reverse of characters of theURL) as text) - 1) thru -1 of theURL
    set theFile to (p_path & "/Downloads/" & theName)
    set macPath to (POSIX file theFile)
    do shell script "/usr/bin/curl " & theURL & " -o " & quoted form of POSIX path of macPath
    end run
    </code>
    My last attempt within VBA is:
    <code>
    Sub SaveMetaDataFile(URL As String, shortFileName As String)
    Dim scriptToRun As String
    Dim posixcmd As String
    posixcmd = ThisWorkbook.Path
    scriptToRun = "tell application " & posixcmd & ":MetaDataFileDownloadScript.app " & URL
    MsgBox "[" & scriptToRun & "]"
    MacScript (scriptToRun)
    </code>
    I first tried to call the script directly without the "tell application" and I still obtain an error. I also tried the following in VBA and I get the same error with the last lane of code:
    <code>
    scriptToRun = "set theURL to " & """" & URL & """" & Chr(13)
    scriptToRun = scriptToRun & "set p_path to do shell script " & """" & "/bin/echo ~ " & """" & Chr(13)
    scriptToRun = scriptToRun & "set m_path to " & """" & posixcmd & """" & Chr(13)
    scriptToRun = scriptToRun & "set theName to " & """" & shortFileName & """" & Chr(13)
    scriptToRun = scriptToRun & "set theFile to (p_path & " & """/Downloads/""" & " & theName)" & Chr(13)
    scriptToRun = scriptToRun & "set macPath to (POSIX file theFile)" & Chr(13)
    scriptToRun = scriptToRun & "do shell script " & """" & "/usr/bin/curl " & """" & " & " & " theURL " & " & " & """" & " -o " & """" & " & " & " quoted form of POSIX path of macPath"
    MsgBox scriptToRun
    'scriptToRun = scriptToRun & "do shell script " & """/usr/bin/curl """ & " & " & " theURL " & """ -o """ & " & " & " quoted form of POSIX path of macPath"
    MacScript (scriptToRun)
    </code>
    The above code is from the applescript application. The applescript application works well using the terminal via osascript. For example:
    xenas-imac:Census Work Xena$ osascript MetaDataFileDownloadScript.app http://www2.census.gove/acs20095yr/summaryfile/Sequence_Number_and_Table_numberLookup.xls
    xenas-imac:Census Work Xena$
    The whole goal is to download a file into the Download directory from Excel to allow the next step to import the file into Excel for the user. Any help here would be great!
    Thank you;
    Lori

    Update:
    Ok have the module almost working and matches the syntax within the test applescript I had created, but the VBA code via the MacScript() call is generating an invalid procedure or argument call. The following is the test applescript to compare the created string to be passed to VBA MacScript() function:
    <code>
    set appPath to quoted form of POSIX path of "Macintosh HD:Users:Xena:Desktop:Census Work:"
    do shell script "/usr/bin/osascript " & appPath & "MetaDataFileDownloadScript.app " & "http://www2.census.gove/acs20095yr/summaryfile/Sequence_Number_and_Table_numberLookup.xls"
    </code>
    The following is the VBA module that generates the above word for word as far as I can tell:
    <code>
    Sub SaveMetaDataFile(URL As String, shortFileName As String)
    Dim scriptToRun As String
    Dim posixcmd As String
    posixcmd = ThisWorkbook.Path
    posixcmd = posixcmd & ":"
    scriptToRun = "set appPath to quoted form of POSIX path of " & Chr(34) & posixcmd & Chr(34) & Chr(13)
    scriptToRun = scriptToRun & "do shell script " & Chr(34) & "/usr/bin/osascript " & Chr(34) & " & appPath & " & Chr(34) & "MetaDataFileDownloadScript.app " & Chr(34) & " & " & Chr(34) & URL & Chr(34)
    MsgBox "[" & scriptToRun & "]"
    MacScript (scriptToRun)
    End Sub
    </code>
    The message box in the above VBA code matches my test applescript file and I have taken the output of the MsgBox and used it in a test applescript and it works great, but VBA is throwing "Run-time error '5': Invalid procedure call or argument".
    Looking at Microsoft's definition it takes a string argument and I have made sure that scriptToRun is a string type, so at this point I suspect there is something wrong with the MacScript() funciton, or I am missing something above. Is there another way to call an applescript application from VBA outside the MacScript() function? Or is there something I am missing? Any help or suggestions is needed.
    Thank you;
    Lori (CodeXena)

Maybe you are looking for

  • May I Safely Delete My Older Version of Microsoft Office?

    I recently installed Mavericks on my MacBook Pro.  Mavericks does not support Microsoft Office 2004 for Mac, which I was using before installing Mavericks.  Therefore, I have purchased and installed Microsoft Office 2011 for Mac.  In "Applications" i

  • How can I set the value to a session bean from backing bean

    Hi Experts, How can I set the value to a session bean from backing bean where I have created getter and setter methods for that variable. Basically I am using ADFUtils class where I am able to get the value from session bean using following expressio

  • Invoicing due date format

    hi invoicing company code belongs to UK and the bill to party is US customer  in the invoice the due date is appearing in US format client would like to change it to UK date format (dd/mm/yyyy), who ever the customer is if teh billing company code is

  • KVM Role

    Is it possible to create a KVM role in UCS Manager? We are using LDAP for authentication and we'd like to map a group to a role that would only allow KVM access. The users in the KVM role would be able to see a remote console, power the server on/off

  • DOC BUG 4.2: About On Demand Application Processes

    There is an error in Oracle Application Express Application Builder User's Guide Release 4.2 §8.8.1 "About On Demand Application Processes": An On Demand process is special type of application process which has a Process Point of On Demand and execut